Re: Memory efficient way to get image metadata?

2009-08-03 Thread Dave Keck
> 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/

Re: Memory efficient way to get image metadata?

2009-08-03 Thread kentozier
interfaces, do I have to also run CFRelease on the result of theĀ  CGImageSourceCopyProperties call? - Original Message - From: "John Calhoun" To: "Cocoa Developers" Sent: Monday, August 3, 2009 4:33:51 PM GMT -05:00 US/Canada Eastern Subject: Re: Memory efficient

Re: Memory efficient way to get image metadata?

2009-08-03 Thread John Calhoun
On Aug 3, 2009, at 1:23 PM, kentoz...@comcast.net wrote: Is there some way (other than rolling my own image readers) to just get the metadata from a file rather than having to load the entire thing? A third party class that would be something like "NSImageInfo" (if Apple had written such a c

Memory efficient way to get image metadata?

2009-08-03 Thread kentozier
Hi I wrote an image catalog application that scans files on a Windows server, extracts certain image file info (like mod date, name, width, height and color mode) and writes this info to a database. During testing, in a real environment, the app started crashing and I narrowed the problem dow