Re: Nibs and memory leaks
Re: Nibs and memory leaks
- Subject: Re: Nibs and memory leaks
- From: The Karl Adam <email@hidden>
- Date: Tue, 9 Nov 2004 18:48:26 -0500
For nib resources you are required to release all top level objects,
That means if you have a direct link to it then you are responsible
for releasing it in your owner.
On Tue, 9 Nov 2004 11:11:34 +0100, Pierre DOUCY
<email@hidden> wrote:
> Dear all,
>
> 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 ?
>
> Thanks in advance.
>
> Pierre DOUCY
>
> _______________________________________________
> 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
>
_______________________________________________
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