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

Re: Non-NSObject object and garbage collection


  • Subject: Re: Non-NSObject object and garbage collection
  • From: Antonio Nunes <email@hidden>
  • Date: Mon, 11 Aug 2008 13:14:51 +0100

On 11 Aug 2008, at 12:56, Oleg Krupnov wrote:

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?

You either take care of the object's life time manually as you would in a non-garbage collected environment, or you explicitly move it into the realm of the garbage collector. Lookup "CFMakeCollectable" and "NSMakeCollectable" in the docs.


António

--------------------------------------------
I try to take one day at a time, but sometimes, several days attack me all at once!
--------------------------------------------



_______________________________________________

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>
References: 
 >Non-NSObject object and garbage collection (From: "Oleg Krupnov" <email@hidden>)

  • Prev by Date: Re: Web links with PyObjC
  • Next by Date: Re: Non-NSObject object and garbage collection
  • Previous by thread: Non-NSObject object and garbage collection
  • Next by thread: Re: Non-NSObject object and garbage collection
  • Index(es):
    • Date
    • Thread