Populate NSMutableArray from NSArrayController

August 12, 2011 by · Leave a Comment 

NSMutableArray *newArray = [NSMutableArray arrayWithArray:[arrayController arrangedObjects]];

Simple NSMutableArray sorting

February 16, 2011 by · Leave a Comment 

NSSortDescriptor *sortDesc = [[[NSSortDescriptor alloc] initWithKey:@"self" ascending:NO] autorelease];
[myArray sortUsingDescriptors:[NSArray arrayWithObject:sortDesc]];