Re: EOSortOrdering and keypaths
Re: EOSortOrdering and keypaths
- Subject: Re: EOSortOrdering and keypaths
- From: Chuck Hill <email@hidden>
- Date: Sun, 20 Jun 2010 09:31:58 -0700
On Jun 20, 2010, at 9:24 AM, Andrew R. Kinnie wrote:
> Greetings:
>
> I am drawing a blank here, and am trying to think of how to create an EOSortOrdering across a key path.
>
> I have an entity Booking which has one date and one Performance. Performance is an entity which has one PerformanceType. PerformanceType is an entity which has a name attribute (a String). I want to sort the results of a fetch by the date and by name of the Performance's Performance type. The date is pretty obvious, but the Performance type is confusing me. So how would I create a sort ordering for an array of Bookings to sort based on the key path aBooking.performance.performanceType.name.
performance.performanceType.name
> Any ideas would be appreciated. This seems like it should be obvious, but I'm drawing a blank.
>
> Andrew
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden