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

Re: Embedding image data


  • Subject: Re: Embedding image data
  • From: Derrick Bass <email@hidden>
  • Date: Mon, 13 Mar 2006 07:41:41 -0800
  • Resent-date: Mon, 13 Mar 2006 07:43:48 -0800
  • Resent-from: Derrick Bass <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

On Mar 13, 2006, at 6:20 AM, Scott Thompson wrote:


If you are determined, however, you could do something like use hexdump to dump the image data in hexadecimal form. Format the hexadecimal so that you can include it in a char * array. Also write the length of the data into a variable. Then, at runtime, you simply build your CFData from the char * array and import the image from there.


xxd -include
directly writes out a C file.

Derrick


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: MEETING: Chicago - CAWUG March 14th
  • Next by Date: How to get NSPopUpButtonCell as an NSTextAttachment sending self instead of nil when it performs it's attached target/action
  • Previous by thread: Re: Embedding image data
  • Next by thread: Problem using InterfaceBuilder with Automator Action
  • Index(es):
    • Date
    • Thread