Re: Delegates -- WHAT is delegated?
Re: Delegates -- WHAT is delegated?
- Subject: Re: Delegates -- WHAT is delegated?
- From: Dustin Voss <email@hidden>
- Date: Wed, 20 Dec 2006 14:16:39 -0800
On 19 Dec 2006, at 9:59 PM, Sam Colombo wrote:
I can see why subclasses are good for the specialized views
mentioned,
but where I am really going is the main view where I intend to have
a s--t
load of layers and content types that each need their own handlers
(i.e.,
controllers). I like the MVC concept, but I would like to keep the
C out of
the V.
If you are writing your own classes that will employ delegates, you
should be aware of a couple of rules (from http://cocoadev.com/
index.pl?RulesOfThumb):
* A delegating class should not retain its delegate.
* A delegating class should clean up its delegate references by
calling [self setDelegate:nil] before destroying itself.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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