Re: Delegate: to retain or not?
Re: Delegate: to retain or not?
- Subject: Re: Delegate: to retain or not?
- From: Ondra Cada <email@hidden>
- Date: Mon, 15 Jul 2002 20:26:03 +0200
On Monday, July 15, 2002, at 05:28 , petite_abeille wrote:
Nope. The convention is not to retain them, on the presumption that the
delegate is generally a controller.
Fair enough. Is this "convention" documented anywhere?
It was, once, in the NeXT docs, ages ago, when I've learnt OpenStep.
Frankly I haven't checked whether the text survived the NeXT->Apple
transition or not.
Does, for example, NSTableView states that the delegate/dataSource will
not be retained?
IIRC, there was stated -- by other words, but the gist was the same --
that delegates are not retained, just as I've written (so as not to create
retain loops).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.