Re: Nib & retainCount confusion
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