Re: Delegates
Re: Delegates
- Subject: Re: Delegates
- From: "I. Savant" <email@hidden>
- Date: Mon, 19 May 2008 13:01:17 -0400
On Mon, May 19, 2008 at 12:52 PM, Michael Vannorsdel <email@hidden> wrote:
> Delegates act like observers. They register with another object saying
> "hey, if you do something important I want to know about it and have a
> chance to act on it too".
Well, no, not really. This is significantly different in that you
can set an object as another object's delegate, but if it (your custom
object acting as a delegate) doesn't respond to a particular delegate
method, the delegating object will not call the method. In this way,
you can set objA as objB's delegate and implement none of objB's
delegate methods in objA ... so none will be called.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Delegates (From: "john darnell" <email@hidden>) |
| >Re: Delegates (From: Michael Vannorsdel <email@hidden>) |