• 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: How do make WOPopup use my sorting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Adaptor Info for Microsoft SQL Server problem
  • Next by Date: re: How to read CSV file using WO
  • Previous by thread: Solved - Re: How do make WOPopup use my sorting?
  • Next by thread: Webobjects & Fedex
  • Index(es):
    • Date
    • Thread