• 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: Art Isbell <email@hidden>
  • Date: Sun, 19 Oct 2003 14:29:30 -1000

On Sunday, October 19, 2003, at 01:40  PM, Ray Ackland wrote:

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??

In your subcomponent, you could override takeValuesFromRequest() or appendToResponse(), depending on when you need the results of your calculation. Don't forget to invoke super's implementation in your override. You also have the flexibility of doing things before and after the invocation of super's implementation, depending on your needs.


WO offers many ways to intervene within the request-response loop. It can be challenging, at least for me, to know the best approach under various situations, but there's probably always a way to do what you want when you want to.

Aloha,
Art
_______________________________________________
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.

References: 
 >Re: Reusable Components - one last question (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: Reusable Components - one last question
  • Next by Date: LONG column problem?
  • Previous by thread: Re: Reusable Components - one last question
  • Next by thread: Re: Reusable Components - one last question
  • Index(es):
    • Date
    • Thread