Hi, Im used to c programming where im responsible for freeing everything, and this objective c funky stuff is throwing some spanners in the work. I am using the below code.
NSArray *b = [a allObjects];
NSArray *c = [b sortedArrayUsingDescriptors:sortDescriptors];
Who's responsible for releasing "b" and "c". For the record, "a" is a NSSet. If I release them manually it seems to crash the app, but I'm not 100% sure so I thought Id ask.
Thanks.