Re: How To : Delegates
Re: How To : Delegates
- Subject: Re: How To : Delegates
- From: Art Isbell <email@hidden>
- Date: Wed, 26 Jan 2005 14:42:40 -1000
On Jan 26, 2005, at 2:28 PM, Andy Beier wrote:
What you will need to do is define a class that implements the
displayGroupDisplayArrayForObjects method then in you Application class
constructor put:
WODisplayGroup.setDelegate(new YourDelegateObject());
One might need to be careful using an object that's available when
Application is being constructed. If your app uses concurrent request
handling, then you would likely need to make access to the delegate
thread-safe. Or your delegate method might need access to state that's
specific to each session which wouldn't be accessible from an object
that's created when Application is being constructed.
So what object is chosen to be a delegate needs some consideration.
Aloha,
Art
_______________________________________________
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