• 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: Setting NSObjectController's to file's owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting NSObjectController's to file's owner


  • Subject: Re: Setting NSObjectController's to file's owner
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 15 May 2008 03:36:21 -0500

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Setting NSObjectController's to file's owner (From: AndrĂ© Pang <email@hidden>)

  • Prev by Date: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Next by Date: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Previous by thread: Setting NSObjectController's to file's owner
  • Next by thread: Re: Setting NSObjectController's to file's owner
  • Index(es):
    • Date
    • Thread