• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreData: Getting the last object of a relation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CoreData: Getting the last object of a relation
      • From: Jim Correia <email@hidden>
    • Re: CoreData: Getting the last object of a relation
      • From: George Orthwein <email@hidden>
  • Prev by Date: Re: Application failing on copyWithZone:
  • Next by Date: Re: Strategy for read only Templates with Core Data
  • Previous by thread: Re: Bundle vs. Framework for plugins
  • Next by thread: Re: CoreData: Getting the last object of a relation
  • Index(es):
    • Date
    • Thread