• 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
Nib memory management under Garbage Collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nib memory management under Garbage Collection


  • Subject: Nib memory management under Garbage Collection
  • From: Rob Keniger <email@hidden>
  • Date: Fri, 16 Jan 2009 11:03:59 +1000

After reading the previous thread on memory management of Nib objects, I am unsure how it applies to memory-managed apps. The Garbage Collection programming guide says that if you don't want the collector to collect top-level Nib objects, you must maintain a strong reference to them in your File's Owner, such as an Outlet.

That's fine, but what happens when the Owner goes away? Is it still responsible for setting top-level Nib objects to nil before its - finalize method is called or will the collector clean up the Nib objects automatically?

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Nib memory management under Garbage Collection
      • From: mmalc Crawford <email@hidden>
  • Prev by Date: Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers
  • Next by Date: Re: Working with python interface form Obj-C app
  • Previous by thread: Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers
  • Next by thread: Re: Nib memory management under Garbage Collection
  • Index(es):
    • Date
    • Thread