On Jan 17, 2013, at 01:06, Kyle Sluder <k...@ksluder.com> wrote:

> On Thu, Jan 17, 2013, at 12:31 AM, Laurent Daudelin wrote:
>> Any reason why comparator blocks are not supported in NSSortDescriptor
>> when used for an NSFetchRequest? I tried one unaware they were not
>> supported and I got an exception:
>> 
>> *** Terminating app due to uncaught exception
>> 'NSInvalidArgumentException', reason: 'unsupported NSSortDescriptor
>> (comparator blocks are not supported)'
> 
> Guessing you're using a SQLite store? The SQLite store converts fetch
> requests into SQL queries, and there's no way to express a block
> comparator as a SQL query.
> 
> See the section Fetch Predicates and Sort Descriptors of the Persistent
> Store Features chapter of the Core Data Programming Guide:
> https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdPersistentStores.html
> 
> --Kyle Sluder

Thanks, Kyle. I thought it was something like that but my brain is in slow 
motion at this time after a long day...

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
laur...@nemesys-soft.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to