Re: Nibs and memory leaks
Re: Nibs and memory leaks
- Subject: Re: Nibs and memory leaks
- From: j o a r <email@hidden>
- Date: Wed, 10 Nov 2004 07:56:13 +0100
On 2004-11-09, at 11.11, Pierre DOUCY wrote:
I'm in the process of writing an application which behaviour is close
to a document-based app, except that I don't need most of the
capabilities provided by the NSDocument class. For that reason I won't
bother to use it, and instead will create a nib file containing my
"document" window and its controllers, etc...
The nib will be loading whenever the the need arises with [NSBundle
loadNibName: owner]
This process is fairly clear in my mind.
Now what's less clear is how to cleanly dispose all those objects to
avoid memory leaks.
Should I just override my FileOwner's - release to release (or even
dealloc ?) the objects instantiated by the nib ? Or is there something
that I don't get about using more than one nib ?
All you need to know can be found here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
LoadingResources/Concepts/NibFileLoaded.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/
Concepts/WinControllersAndNibs.html>
More info on the topic can probably also be found in the list archives.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden