Re: Nib & retainCount confusion
Re: Nib & retainCount confusion
- Subject: Re: Nib & retainCount confusion
- From: Keary Suska <email@hidden>
- Date: Wed, 03 Oct 2007 16:39:37 -0600
- Thread-topic: Nib & retainCount confusion
on 10/3/07 3:01 PM, email@hidden purportedly said:
> What is the "top level objects dictionary" you refer to? Is that my
> object that the controller is bound to?
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.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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