On Oct 15, 2005, at 4:30 PM, Dev WO wrote:
keep working on my shopping cart, I was wondering if I could mix both @sum and an operation like (assuming cartList contains item objects) item.quantity()*item.price()?
Not really. What you want to do is write an accessor on item, total (), which returns quantity()*price(), and @sum on that.
sacha -- Sacha Michel Mallais Senior Developer / President Global Village Consulting Inc. http://www.global-village.net/ PGP Key ID: 7D757B65 AIM: smallais Bottom posting is your friend: http://www.river.com/users/share/etiquette/
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
