Re: Attaching data to image files
Re: Attaching data to image files
- Subject: Re: Attaching data to image files
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 11 Apr 2003 17:04:59 -0700
On Friday, April 11, 2003, at 04:50 PM, Jan Van Tol wrote:
List,
As part of the caching mechanism in my app, I need to be able to
associate data with image files (PNG in this case). Right now I am
storing it in separate plist files, but soon I will have many more
files to manage, and it could become a little bit unwieldy. Is there
a way to embed data (basically a couple of strings) directly in the
image file? Would this be the best way to manage my situation, or
would separate files be the best way to go?
Check the PNG specification. IIRC, you can add a text chunk to a .png
file, although there isn't any Cocoa API to do this directly.
Whether this is the right thing to do for your app is really a question
that only you can decide.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.