Re: Effective Cocoa (was Category or Protocol? (objc newbie))
Re: Effective Cocoa (was Category or Protocol? (objc newbie))
- Subject: Re: Effective Cocoa (was Category or Protocol? (objc newbie))
- From: Ondra Cada <email@hidden>
- Date: Tue, 19 Apr 2005 23:44:14 +0200
Rick,
On 19.4.2005, at 22:21, Rick Kitts wrote:
... For example, does one retain a delegate?
No, one does not.
If not, why not?
Basically since it is the convention :)
The convention is is for in a vast majority of scenarios the delegate
happens to be the controller, which retains the other objects --
including those who use it as their delegate. Therefore, retaining a
delegate would very very often mean a retain loop.
And so forth.
Well, guess I should write that book after all :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden