• 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: Memory efficient way to get image metadata?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory efficient way to get image metadata?


  • Subject: Re: Memory efficient way to get image metadata?
  • From: Dave Keck <email@hidden>
  • Date: Mon, 3 Aug 2009 11:45:47 -1000

> P.S. I very rarely use the C interfaces, do I have to also run CFRelease on the result of the  CGImageSourceCopyProperties call?

Yes, you should. See 'The Create Rule':
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029.

Or, if you're using Garbage Collection, you should call
CFMakeCollectable() on it.

Or you could cast it to id and autorelease it, which I find particularly handy.
_______________________________________________

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

References: 
 >Re: Memory efficient way to get image metadata? (From: John Calhoun <email@hidden>)
 >Re: Memory efficient way to get image metadata? (From: email@hidden)

  • Prev by Date: Re: Memory efficient way to get image metadata?
  • Next by Date: NSUndoManager vs @synthesize
  • Previous by thread: Re: Memory efficient way to get image metadata?
  • Next by thread: "unlockFocus called too many time" console message
  • Index(es):
    • Date
    • Thread