On Mar 7, 2006, at 3:38 PM, Jim Wong wrote:

i know that inside the .woo file there's the below:

            sortOrdering = (
                {
                    class = EOSortOrdering; 
                    key = oppActStageID; 
                    selectorName = "compareAscending:"; 
                }
            ); 

segment. but how to change the code to make it perform multiple sorts which factors in all the sort?

Because you are still in the WO learning mode, it's probably better in the long run for you to deduce the answer rather than being fed it directly :-)  So here goes...

Everything stored in an eomodel, woo, or other WO and EOF files is data used by public API.  In the case of a woo file, the key in the data structure that governs sorting is "sortOrdering".  It would probably more appropriately be named "sortOrderings" to map to the WODisplayGroup method that uses this data.  So your first clue is the answer to the question, "What type of data does this WODisplayGroup method return?"

How does this data type relate to the "sortOrdering" data structure in the woo file?  It's an ASCII property list, examples of which are used throughout WO and EOF (<http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Concepts/OldStylePListsConcept.html>).

After studying that reference, you should be able to figure out how to modify the "sortOrdering" data structure in the woo file to sort by multiple attributes.

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to