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

Embedding image data


  • Subject: Embedding image data
  • From: August Trometer <email@hidden>
  • Date: Sun, 12 Mar 2006 13:54:41 -0500

Hello!

I've got a custom view class that uses a particular background image. This image is static and won't change, even when used in multiple applications. I'd like to make the class more portable, and I don't want to have to copy the background image as well as the source files. So, what I want to do is embed the image data in the source file itself.

I'm guessing that I should do this as a static NSData object, then use that data to create the image. However, I'm having trouble figuring out the best way to represent the image data as well as the coding the NSData object itself. Is there a good way to do this?

Thanks!

August


_______________________________________________ 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
  • Follow-Ups:
    • Re: Embedding image data
      • From: Scott Thompson <email@hidden>
  • Prev by Date: NSUserDefaults and objects
  • Next by Date: Problem using InterfaceBuilder with Automator Action
  • Previous by thread: Re: NSUserDefaults and objects
  • Next by thread: Re: Embedding image data
  • Index(es):
    • Date
    • Thread