CoreData: Getting the last object of a relation
CoreData: Getting the last object of a relation
- Subject: CoreData: Getting the last object of a relation
- From: email@hidden
- Date: Mon, 19 Jun 2006 07:30:42 +0200
Hi,
I'd like to get the last inserted object of a relation. If tried several things,
but nothing worked:
1. [self valueForKeyPath:@"transactions.@lastObject"] -> doesn't work, because
CoreData doesn't know "@lastObject".
2. fetch request on transactions and returning the last object of the array ->
the array is obviously not sorted, because it doesn't return the last inserted
object. I have to say, that I need a predicate for the fetch request.
I'm really stucked here... this is one of my last problems before finishing my
first application :-(
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden