• 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
Re: core data key value path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data key value path


  • Subject: Re: core data key value path
  • From: Jim Correia <email@hidden>
  • Date: Sat, 24 Feb 2007 11:41:42 -0500

On Feb 24, 2007, at 8:55 AM, Camille GOUREAU-SUIGNARD wrote:

I use core data, with several entities linked via relationships.

Entity A has a to one relashionship (named: 'relat') to entity B.
Entity B has an attribute named 'attrib'.

I have an NSarray containig A instances.
i would like to sort that array on relat.attrib key value.

[anArray sortedArrayUsingDescriptors: [NSArray arrayWithObject: @"relat.attrib"]]
does not work, beause 'relat.attrib is searched a an A key value.

Refer to the API documentation for -sortedArrayUsingDescriptors:.

The array is an array of NSSortDescriptors, not an array of strings/ keypaths.

Jim
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >core data key value path (From: Camille GOUREAU-SUIGNARD <email@hidden>)

  • Prev by Date: Re: When does -[NSWindow sendEvent:] beep?
  • Next by Date: Re: Call of super from a custom NSCell in a custom NSControl
  • Previous by thread: core data key value path
  • Next by thread: Implications of changing an app's bundle identifier
  • Index(es):
    • Date
    • Thread