• 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: @sum and operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >@sum and operation (From: Dev WO <email@hidden>)

  • Prev by Date: @sum and operation
  • Next by Date: Re: [solved] mysterious LDAP problem and "why doesn't EOAdaptorDebugEnabled log LDAP too?"
  • Previous by thread: @sum and operation
  • Next by thread: url issue on deployed WOApp
  • Index(es):
    • Date
    • Thread