Sorting a two-dimensional NSMutableArray
Sorting a two-dimensional NSMutableArray
- Subject: Sorting a two-dimensional NSMutableArray
- From: "Ben O'Neill" <email@hidden>
- Date: Mon, 10 Jun 2002 16:27:42 +1000
To All,
How do I sort a two dimensional array in line, I have been trying with;
records = [records sortedArrayUsingSelector:@selector(compare:)];
where records (the Array is defined as )
records = [[NSMutableArray alloc] initWithContentsOfFile:recordsFile];
but it compiles it returns a warning:
assignment from incompatible pointer type
and when it runs and the above line is run it returns an error:
2002-06-10 16:25:57.624 DVDManager[1272] *** -[NSCFDictionary
caseInsensitiveCompare:]: selector not recognized
What am I missing?
Thanks in advance
Ben O'Neill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.