• 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: D2W: Selectors for enum types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W: Selectors for enum types?


  • Subject: Re: D2W: Selectors for enum types?
  • From: Paul Hoadley <email@hidden>
  • Date: Fri, 01 Jun 2012 16:33:39 +0930

On 01/06/2012, at 6:20 AM, Ramsey Gurley wrote:

Create a method called availableBillingStatuses() on the eo. It returns the list of possible billing statuses the object can have in its current state. Then just use object.availableBillingStatuses. 

Not only does that solve the problem, but it permits the removal of statuses that don't make sense. For example, if amountDue == $0, then billingStatus == PAST_DUE doesn't make sense.

Thanks Ramsey.  I like that.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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

  • Next by Date: Re: jdbc error at start up
  • Next by thread: Re: jdbc error at start up
  • Index(es):
    • Date
    • Thread