Re: core data key value path
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