• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delegate: to retain or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Delegate: to retain or not? (From: petite_abeille <email@hidden>)

  • Prev by Date: Re: Multiples NSDocumentController's ?
  • Next by Date: Re: documentation tools?
  • Previous by thread: Re: Delegate: to retain or not?
  • Next by thread: Re: Delegate: to retain or not?
  • Index(es):
    • Date
    • Thread