Re: WODisplayGroup sort question
Re: WODisplayGroup sort question
- Subject: Re: WODisplayGroup sort question
- From: Nathan Dumar <email@hidden>
- Date: Mon, 23 Aug 2004 13:44:58 -0400
This is really taking the long way around. The underlying value of the
Display Group is that it already has great subroutines for most common
display needs, including sorting. Check out the setSortOrderings
method.
Nathan
On Aug 23, 2004, at 11:52 AM, Michael Engelhart wrote:
Here's my code that does the sort/WODisplayGroup update:
NSArray sortedArray;
NSMutableArray sortOrderings = new NSMutableArray();
EOSortOrdering sortByName = new EOSortOrdering("name",
EOSortOrdering.CompareAscending);
sortOrderings.addObject(sortByName);
sortedArray =
EOSortOrdering.sortedArrayUsingKeyOrderArray(displayGroup.allObjects(),
sortOrderings);
displayGroup.setObjectArray(sortedArray);
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.