Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do make WOPopup use my sorting?



Hi,
If you need a custom sort for your EOs in .wod bindings one way to do it is to register a new array operator with NSArray.


Operators are used in key-paths with an @ sign before the operator:

More info in the dev docs at:

http://developer.apple.com/documentation/WebObjects/Reference/API5.2.2/ com/webobjects/foundation/NSArray.Operator.html

It's a simple one method interface and you register an instance of your implementation with NSArray at startup, or in a static block somewhere.


Google : nsarray operator

An example:

http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem? itemId=255&wosid=qx6mURjzHOr8lUvtgZE9VM


Another example of an extension point in WebObjects

Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >How do make WOPopup use my sorting? (From: James Cicenia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.