Re: Reusable Components - one last question
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.