• 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: disowning a bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >disowning a bundle? (From: Jack Repenning <email@hidden>)
 >Re: disowning a bundle? (From: "Hamish Allan" <email@hidden>)
 >Re: disowning a bundle? (From: Jack Repenning <email@hidden>)
 >Re: disowning a bundle? (From: Ricky Sharp <email@hidden>)
 >Re: disowning a bundle? (From: Jack Repenning <email@hidden>)

  • Prev by Date: Re: cascading windows in document architecture
  • Next by Date: Re: cascading windows in document architecture
  • Previous by thread: Re: disowning a bundle?
  • Next by thread: Re: disowning a bundle?
  • Index(es):
    • Date
    • Thread