Re: Release nib when file's owner is deallocated
Re: Release nib when file's owner is deallocated
- Subject: Re: Release nib when file's owner is deallocated
- From: Mike Ferris <email@hidden>
- Date: Sun, 12 Jan 2003 17:27:32 -0800
Two choices:
- Either change the owners to be subclasses of NSWindowController which
automatically releases the nib contents when it goes away.
- Or make sure you have an outlet to every top-level object in your nib
and release them in your dealloc. "Top-level" objects are the ones
that show as icons in the nib document window.
Mike
Begin forwarded message:
From: "Tony S. Wu" <email@hidden>
Date: Sun Jan 12, 2003 2:28:14 PM US/Pacific
To: email@hidden
Subject: Release nib when file's owner is deallocated
I need to load a couple of NIB files dynamically in my program.
The file owners assigned to those NIB are subclasses of NSObject.
But how do I deallocate the whole NIB files when the file owner is
about to be released?
Thanks for your help.
Tony S. Wu
email@hidden
"It takes a smart man to be stupid." ~Tony
_______________________________________________
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.
_______________________________________________
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.