From b0d36555cf733158aade3aed0310631159cbeac4 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 27 May 2018 07:45:13 +0300 Subject: [PATCH] Fix [[NSMutableArray new] init...] --- AppKit/NSMatrix.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/NSMatrix.m b/AppKit/NSMatrix.m index ae623466..fe5ce84f 100644 --- a/AppKit/NSMatrix.m +++ b/AppKit/NSMatrix.m @@ -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 \ No newline at end of file +@end