Re: Delegate: to retain or not?
Re: Delegate: to retain or not?
- Subject: Re: Delegate: to retain or not?
- From: Richard Wolf <email@hidden>
- Date: Mon, 15 Jul 2002 15:26:16 -0500
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.
This very issue (the issue of whether a delegate should be retained)
was brought up by Ali Ozer in his talk on Cocoa API techniques at
this year's WWDC. If you can view ADC TV, you can see the talk --
it's one of those that's available for streaming. It's a very good
talk ... I've watched it something like six of seven times already --
it always makes me hungry afterword (lots of comparisons between
restaurants, waiters, lobsters and Cocoa objects).
But whether it's officially documented ... that, I don't know. Sure
makes me glad I saw the talk though ... maybe there was other stuff
in it I picked up there that isn't available elsewhere. :-) :-)
_______________________________________________
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.