I have an application with many Nib files. I have a
particular Nib file that has two classes on it, the
owner and a view. When I release the owner class,
You don't release classes, you releases instances of classes.
the
view class' dealloc method is never called. I was
wondering if there was any way to release or otherwise
dispose of the Nib file and all of it's objects.
You are responsible for releasing all top level objects that you load
from a nib file (unless you're a subclass from NSWindowController,
then you get some help with that). So if you have a top level NSView
in your nib file, the object loading the view - the "files owner"
with the outlet to the view - should release the view in dealloc.
You can find more information on this topic in the documentation, and
in the list archives.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden