• 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: Reusable Components - one last question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reusable Components - one last question


  • Subject: Re: Reusable Components - one last question
  • From: Ray Ackland <email@hidden>
  • Date: Mon, 20 Oct 2003 12:40:14 +1300

Very clever. I am impressed. Only problem I can think of is in the case when I have several bindings. No guarantee that the set method will be the last one called. I could get around this by including the calc call in all the set methods, checking in each one that all the variables are available.

But I expect there must be a standard way of doing it. Isn't that what the awake method would be for??

R.

On Monday, Oct 20, 2003, at 11:09 Pacific/Auckland, Peter Fournier wrote:

Make your bound item a private variable with accessor and set methods. In
the set kick off your calculation.


If you need to, set a flag to mark the calculation as performed or use some
other method of preventing long running calculations from being redone when
your component has already gathered the data it requires.


Pete Fournier
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Reusable Components - one last question
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Reusable Components - one last question
  • Next by Date: Re: Reusable Components - one last question
  • Previous by thread: Re: Reusable Components - one last question
  • Next by thread: Re: Reusable Components - one last question
  • Index(es):
    • Date
    • Thread