Re: Need help sorting with NSSortDescriptor and/or/NSPredicate (Core Data)

2011-02-11 Thread Ken Thomases
On Feb 11, 2011, at 9:19 AM, Michael Crawford wrote: > Thank you both for your suggestions. You're welcome. I'm glad I could help. > I ended up going with Ken's idea regarding the synthetic property. It was > added to a NSManagedObject derived class so I couldn't use it during the > fetch re

Re: Need help sorting with NSSortDescriptor and/or/NSPredicate (Core Data)

2011-02-11 Thread Michael Crawford
Thank you both for your suggestions. I ended up going with Ken's idea regarding the synthetic property. It was added to a NSManagedObject derived class so I couldn't use it during the fetch request without actually adding an attribute but I did use it to sort the resulting array. The syntheti

Re: Need help sorting with NSSortDescriptor and/or/NSPredicate (Core Data)

2011-02-08 Thread Ernesto Giannotta
On 07-feb-2011, at 16:29, Ken Thomases wrote: > On Feb 7, 2011, at 8:56 AM, Michael Crawford wrote: > >> I'm trying to implement a feature where I sort a cross-section of music from >> multiple genres with up to two different keys, where the items with a genre >> matching the first key appear

Re: Need help sorting with NSSortDescriptor and/or/NSPredicate (Core Data)

2011-02-07 Thread Ken Thomases
On Feb 7, 2011, at 8:56 AM, Michael Crawford wrote: > I'm trying to implement a feature where I sort a cross-section of music from > multiple genres with up to two different keys, where the items with a genre > matching the first key appear first in the collection and items with a genre > match

Need help sorting with NSSortDescriptor and/or/NSPredicate (Core Data)

2011-02-07 Thread Michael Crawford
I'm trying to implement a feature where I sort a cross-section of music from multiple genres with up to two different keys, where the items with a genre matching the first key appear first in the collection and items with a genre matching the second key appear after the first group in the collec