Sorting problem
"jbs_mailuk" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.newbies |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I'm trying to sort an array of objects (in an NSMutableArray) by using
EOSortOrdering.sortArrayUsingKeyOrderArray().
I can do this easily on normal attributes. However, I need to sort on
a derived attribute, i.e. a method. In this case, myValue().
Where do I put this method? I've tried putting it in the myObject
class as public, but it's not being called by the sort. I've tried
variations such as getMyValue() and private _myValue() and
_getMyValue(), but so far no joy. The docs say it should be possible,
but I'm clearly missing out something necessary.
Any ideas?
TIA,
John
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/webobjects-newbies/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/