how to properly dealloc contents of a nib
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.