• 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: Removing Nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing Nibs


  • Subject: Re: Removing Nibs
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 5 Dec 2003 01:13:28 +0100

At 13:27 Uhr -0700 04.12.2003, April Gendill wrote:
Ok, if I have a multiple nib application, and I invoke the second nib when a window is opened, then when that is done, I close the window, and release it and its model object, but how do I dispose of the nib so that if I need to open the window again it does not crash the app?

Don't swamp us with too much information, it may cause us to find a solution to your problem by accident. :-)

Anyway... I assume you're loading your NIB by returning your NIB file's name from that method in your NSDocument subclass? In that case you don't dispose of anything in the NIB. NSDocument will take care of realeasing all of the top-level objects in the NIB, which will in turn release all their subviews etc.

If you're using one of those loadXXX methods, search the archives. I asked this question before. Basically, you can pass in an NSMutableArray as a particular key, and it will be filled with a list of all top-level obhects of which you can then dispose.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Removing Nibs (From: April Gendill <email@hidden>)

  • Prev by Date: Re: Subclassing NSCell
  • Next by Date: Controller Layer and initialize method in model class
  • Previous by thread: Removing Nibs
  • Next by thread: Re: Toll Free Bridging, wrapping the SearchKit, and One-Way Bridging
  • Index(es):
    • Date
    • Thread