Re: How do make WOPopup use my sorting?
Re: How do make WOPopup use my sorting?
- Subject: Re: How do make WOPopup use my sorting?
- From: Michael Henderson <email@hidden>
- Date: Wed, 29 Sep 2004 10:47:11 -0700
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:
This email sent to email@hidden