• 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: Nib & retainCount confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib & retainCount confusion


  • Subject: Re: Nib & retainCount confusion
  • From: email@hidden
  • Date: Fri, 5 Oct 2007 09:20:26 -0700

Thanks for the explanation of the top level objects.

When using a nib loading method such as NSBundle's
-loadNibFile:externalNameTable:withZone:, you can maintain references to the
top level objects (the items that appear in IB's "instance" window) in a
dictionary. It's the only way I know of to have some control over when nib
objects are released. If you don't do this, or you don't use an
NSWindowController subclass (which takes care of its own nib objects), your
nib objects will leak.
_______________________________________________

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


  • Prev by Date: Re: NSTextTable column width calculations?
  • Next by Date: ObjC vs C++ (was: Is ZLib available in Cocoa?)
  • Previous by thread: Re: Nib & retainCount confusion
  • Next by thread: Toolbar item with popup menu
  • Index(es):
    • Date
    • Thread