Fix [[NSMutableArray new] init...]

This commit is contained in:
Sergey Bugaev 2018-05-27 07:45:13 +03:00
parent 4a6023339f
commit b0d36555cf

View File

@ -59,7 +59,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
_cellClass=[NSCell class];
}
_prototype=[[keyed decodeObjectForKey:@"NSProtoCell"] retain];
_cells=[[NSMutableArray new] initWithArray:[keyed decodeObjectForKey:@"NSCells"]];
_cells=[[NSMutableArray alloc] initWithArray:[keyed decodeObjectForKey:@"NSCells"]];
id selectedCell=[keyed decodeObjectForKey:@"NSSelectedCell"];
if ((_selectedIndex=[_cells indexOfObjectIdenticalTo:selectedCell]) != NSNotFound)
[self selectCell:selectedCell];
@ -1346,4 +1346,4 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
[self selectCellWithTag:selectedTag];
}
@end
@end