• 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
Non-NSObject object and garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Non-NSObject object and garbage collection


  • Subject: Non-NSObject object and garbage collection
  • From: "Oleg Krupnov" <email@hidden>
  • Date: Mon, 11 Aug 2008 14:56:44 +0300

My application relies fully on garbage collection as the memory
management method.

Now I want to use a Quartz object which is not derived from NSObject.

Will it cause a memory leak if I treat the Quartz object in the same
way as I do to all my NSObject descendants, i.e. no retains and rely
only on garbage collection?

My understanding has been that the garbage collection functionality is
implemented somewhere under the hood of NSObject and that's (one of
the reasons) why all my objects should derive from NSObject. I hope I
am wrong and Quartz objects can be used just as well. :)

Thanks!
_______________________________________________

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: Non-NSObject object and garbage collection
      • From: Antonio Nunes <email@hidden>
  • Prev by Date: Sort Descriptor problem in NSTableView
  • Next by Date: Thread deadlock?
  • Previous by thread: Re: Sort Descriptor problem in NSTableView [SOLVED]
  • Next by thread: Re: Non-NSObject object and garbage collection
  • Index(es):
    • Date
    • Thread