• 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: Attaching data to image files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Attaching data to image files (From: Jan Van Tol <email@hidden>)

  • Prev by Date: Attaching data to image files
  • Next by Date: [OT?] Nib files balloon app size
  • Previous by thread: Attaching data to image files
  • Next by thread: Re: Attaching data to image files
  • Index(es):
    • Date
    • Thread