• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Nibs and memory leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Nibs and memory leaks (From: Pierre DOUCY <email@hidden>)

  • Prev by Date: Re: memory management (perhaps naive) question
  • Next by Date: Re: Make a NSThread fall asleep and awake it.
  • Previous by thread: Nibs and memory leaks
  • Next by thread: Re: Nibs and memory leaks
  • Index(es):
    • Date
    • Thread