• 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
how to properly dealloc contents of a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to properly dealloc contents of a nib


  • Subject: how to properly dealloc contents of a nib
  • From: Chris Silverberg <email@hidden>
  • Date: Thu, 1 Apr 2004 11:00:27 -0800

Hello everyone,

Let's say I have a nib that contains window, and the owner is an NSWindowController subclass. The nib also contains an instantiated NSObject subclass that has some IBOutlets that point into the window. (it's a simple controller that gets reused quite a bit in other nibs).

So here's my question... when the user closes my window, I want to make sure that everything from this nib is unloaded. But that doesn't seem to be the case by default. Only the window controller is being deallocated, the other instantiated objects are ignored. What is the proper way to get an NSWindowController to unload all objects it loaded in the nib?

thanks,
Chris
_______________________________________________
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: 
 >NSSound instability on 10.2.8 (From: Chris Silverberg <email@hidden>)

  • Prev by Date: Re: NSSound instability on 10.2.8
  • Next by Date: Sending an AppleScript Studio Object a message from Obj-C
  • Previous by thread: Re: NSSound instability on 10.2.8
  • Next by thread: Re: [OT] Retain count riddle
  • Index(es):
    • Date
    • Thread