Re: Delegate ?
Re: Delegate ?
- Subject: Re: Delegate ?
- From: Andy Lee <email@hidden>
- Date: Sun, 14 Apr 2002 15:24:35 -0400
At 9:12 PM +0200 4/14/02, Famille GOUREAU-SUIGNARD wrote:
does a delegate have to be a descendant of the object type it will
be a delegate of,
or can it be any type of object ?
It can be any type of object. It should be a class that falls into
the "Controller" category of Model-View-Controller (MVC).
On a related note, if an AppKit class takes a delegate, you probably
don't want to subclass it. NSWindow, NSTextView, etc. are relatively
complex classes that have a lot of functionality and flexibility
built in so you won't have to subclass them. Rather, you extend
their behavior by other means such as delegation.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Delegate ? (From: Famille GOUREAU-SUIGNARD <email@hidden>) |