Re: Sorting the NSSet of a NSManagedObject's attribute

2010-05-15 Thread Gustavo Pizano
OH!! You are right.. I forgot my discrete maths classes... :S so I have to return an array isn't it? ok I wil create the proper method to return the NSArray; g. On 15.5.2010, at 20:14, Quincey Morris wrote: > On May 15, 2010, at 10:42, Gustavo Pizano wrote: > >> NSSet * sorte

Re: Sorting the NSSet of a NSManagedObject's attribute

2010-05-15 Thread Quincey Morris
On May 15, 2010, at 10:42, Gustavo Pizano wrote: > NSSet * sortedtoRet = [NSSet setWithArray:[[toRet allObjects] > sortedArrayUsingDescriptors:[NSArray arrayWithObject:descriptor]]]; > return sortedtoRet; > } > > but :S.. of course it doesn't work, > I read I can apply to the NSFetc