• 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
Nibs and memory leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nibs and memory leaks


  • Subject: Nibs and memory leaks
  • From: Pierre DOUCY <email@hidden>
  • Date: Tue, 9 Nov 2004 11:11:34 +0100

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


  • Follow-Ups:
    • Re: Nibs and memory leaks
      • From: j o a r <email@hidden>
    • Re: Nibs and memory leaks
      • From: The Karl Adam <email@hidden>
  • Prev by Date: Re: New Spotlight Info
  • Next by Date: Re: image drawing glitch
  • Previous by thread: Re: non-72dpi image looks strange after saving
  • Next by thread: Re: Nibs and memory leaks
  • Index(es):
    • Date
    • Thread