Re: Sorting a to-many relationship property
Re: Sorting a to-many relationship property
- Subject: Re: Sorting a to-many relationship property
- From: "I. Savant" <email@hidden>
- Date: Wed, 16 Jul 2008 20:51:30 -0400
But they come back in whatever order Core Data has for them. I'd
really like for all requests for Foo.bars to come back sorted by a
property of Bar. Is this possible? Or must I either create a new
property that sorts them, or just sort them after I get them?
You'll need to sort them yourself after you get them if you're
directly getting them via -valueForKeyPath: since there's no way to
specify a sort descriptor at that time. NSArray conveniently has a
method for exactly that purpose.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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