FROM : Ondra Cada
DATE : Tue Apr 19 23:44:14 2005
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_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc
DATE : Tue Apr 19 23:44:14 2005
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_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc






Cocoa mail archive

