RE: Selecting max in NSArray
RE: Selecting max in NSArray
- Subject: RE: Selecting max in NSArray
- From: <email@hidden>
- Date: Fri, 11 Feb 2005 10:09:23 +0100
- Thread-topic: Selecting max in NSArray
Hi!
This would be serious over-kill, but you could use the BestMatchQualifier from http://homepage.mac.com/i_love_my/code.html
Pierre
-
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On
Behalf Of Drew Thoeni
Sent: Friday, February 11, 2005 4:59 AM
To: WOdev List
Subject: Selecting max in NSArray
I have an NSArray with several objects in it. I want to select the
object that has the maximum price. However, using
valueForKey("@max.item.price") returns, of course, the price for the
item instead of the item. Is there a way to do this without having to
refetch?
Drew
_______________________________________________
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
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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