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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to