Skip navigation.
 
mlRe: Setting NSObjectController's to file's owner
FROM : Ken Thomases
DATE : Thu May 15 10:36:21 2008

On May 15, 2008, at 2:21 AM, André Pang wrote:

> I have a nib file containing an NSObjectController.  The 
> NSObjectController's content is set to the File's Owner proxy 
> object, and this creates a retain cycle.  (The file's owner never 
> gets deallocated because the object controller retains it, and the 
> object controller never gets deallocated because the file's owner 
> retains it as an IBOutlet.)


One of the nice things that NSWindowController and NSViewController do 
for you is, if they are a nib's owner, they resolve this retain cycle 
for you.

Cheers,
Ken

Related mailsAuthorDate
mlSetting NSObjectController's to file's owner André Pang May 15, 09:21
mlRe: Setting NSObjectController's to file's owner Ken Thomases May 15, 10:36
mlRe: Setting NSObjectController's to file's owner Chris Suter May 15, 14:09
mlRe: Setting NSObjectController's to file's owner André Pang May 15, 16:53
mlRe: Setting NSObjectController's to file's owner Michael Babin May 15, 17:59