Re: CoreData: Fetching object with maximum of property

2008-10-08 Thread Frank Illenberger
Hello Bill, unfortunately, this predicate does not work. The max() function returns the maximum of its comma-separated arguments. For example: max(2,1,5) --> 5 This does not help in the search for a cross-object maximum. Cheers Frank On Oct 8, 2008, at 5:42 AM, Bill Dudney wrote: Hi Fra

Re: CoreData: Fetching object with maximum of property

2008-10-08 Thread Negm-Awad Amin
Am Mi,08.10.2008 um 05:42 schrieb Bill Dudney: Hi Frank, Sorry for not getting back sooner; http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pBNF.html#/ /apple_ref/doc/uid/TP40001796-217785 documents the BNF which is very cryptic but tells you everything that

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Bill Dudney
Hi Frank, Sorry for not getting back sooner; http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pBNF.html#/ /apple_ref/doc/uid/TP40001796-217785 documents the BNF which is very cryptic but tells you everything that can be in the expression. So something like thi

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Steve Steinitz
Hi Frank, You wrote Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? I haven't done exactly what you want but if you have an object that has a to many relationship to

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 15:12 schrieb Frank Illenberger: Hello Negm-Awad, thanks for helping. Nicht dafür! The idea with the fetch limit and the descending order solves my problem as I am using a SQLite store. Sonst hättest du auch nicht das Problem. ;-) Liebe Grüße Amin Cheers Frank O

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Frank Illenberger
Hello Negm-Awad, thanks for helping. The idea with the fetch limit and the descending order solves my problem as I am using a SQLite store. Cheers Frank On Oct 7, 2008, at 2:59 PM, Negm-Awad Amin wrote: In contrast to Bill I think, that this is not possible with predicates. Why? You w

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 14:04 schrieb Frank Illenberger: Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? In contrast to Bill I think, that this is not possible with predi

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Frank Illenberger
Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? Frank On Oct 7, 2008, at 1:08 PM, Bill Dudney wrote: Hi Frank, That and a whole lot more; http://developer.apple.com

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Bill Dudney
Hi Frank, That and a whole lot more; http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predicates.html#/ /apple_ref/doc/uid/TP40001798 Good luck! -bd- http://bill.dudney.net/roller/objc On Oct 7, 2008, at 3:49 AM, Frank Illenberger wrote: Hi everybody, does anybody kno