Re: @sum and operation
Re: @sum and operation
- Subject: Re: @sum and operation
- From: Sacha Mallais <email@hidden>
- Date: Sat, 15 Oct 2005 16:51:07 -0700
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/
Attachment:
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden