• 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
EO Constructor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EO Constructor


  • Subject: EO Constructor
  • From: Tavis McDevitt <email@hidden>
  • Date: Wed, 11 Nov 2009 17:38:20 -0800 (PST)


I'm reading Marker's "WebObjects 5 for Mac OS X." He details a method of providing default values for a component's form: he sets an EO's attributes in it's constructor. Then the bindings to those attributes cause the form displayed to the user to have default values. He does this because the EO has not been inserted into the EC yet and so awakeFromInsertion has not been called.
 
I am of the understanding that only non attribute (temporary) variables can be safely initialized in the constructor. What is a better way to provide default values on a form bound to a new EO?
 
Tavis McDevitt

 _______________________________________________
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

  • Follow-Ups:
    • Re: EO Constructor
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Owns destination implies mandatory?
  • Next by Date: Re: EO Constructor
  • Previous by thread: Owns destination implies mandatory?
  • Next by thread: Re: EO Constructor
  • Index(es):
    • Date
    • Thread