Re: disowning a bundle?
Re: disowning a bundle?
- Subject: Re: disowning a bundle?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 25 Feb 2008 18:09:33 +0100
Le 25 févr. 08 à 17:45, Jack Repenning a écrit :
On Feb 24, 2008, at 5:42 PM, Ricky Sharp wrote:
I do this myself since I also load/unload the same nibs throughout
the lifetime of my app.
How do I unload a nib? I see NSBundle's several loadNibBlahBlah
methods, but no unloadNibBlahBlah's.
Sorry if I sound querulous, but I keep getting these answers that
don't seem to match the reality of the code I'm looking at. Should
it be loadNibbing from the (permanent, singleton) Controller rather
than the (ephemeral, multiple) View?
Unlike a bundle or a shared library, a nib is not a loadable piece of
code. A nib is just some archived objects (+ information for
connections, etc).
"Loading" a nib only mean unarchive those objects. To "unload" the
nib, you just have to release all root objects declared in the nib.
If your are using a NSWindowController or an NSViewController, all
roots objects are automatically released when the controller is
deallocated.
_______________________________________________
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