Re: How To : Delegates
Re: How To : Delegates
- Subject: Re: How To : Delegates
- From: Ray Ackland <email@hidden>
- Date: Thu, 27 Jan 2005 13:20:52 +1300
Owen,
As far as I am aware, your delegate doesn't need to be a subclass of
anything. Just create a class that will do the delegate tasks, put
methods in there that are the delegate methods you are interested in,
then specify that your class is the delegate for your source class.
Each time your source class (eg WODisplayGroup) experiences certain
events, it will call the delegate method in the specified delegate
class. Make sure your method implementation matches the signature of
the one listed in the documentation.
r
On 27/01/2005, at 13:13, Owen McKerrow wrote:
Do I make a subclass of the thing I want a delegate for and then
implement that delegate method in the sub-class ?
Will it then be automatically called for me when it needs to be then ?
_______________________________________________
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