• 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: WODisplayGroup sort question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >WODisplayGroup sort question (From: Michael Engelhart <email@hidden>)

  • Prev by Date: anchor from a button in a SSL (https) - looping
  • Next by Date: WebObjects on XP - Cannot execute auto launch
  • Previous by thread: WODisplayGroup sort question
  • Next by thread: Re: WODisplayGroup sort question
  • Index(es):
    • Date
    • Thread