• 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: How to put image file inside the project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put image file inside the project?


  • Subject: Re: How to put image file inside the project?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 14 Nov 2007 09:51:25 +0100

On Nov 13, 2007, at 11:15 PM, Winston Ma wrote:

I would like to put the image inside the xcode project so the picture is embedded inside the application. How can I do this

and how can I call the image to be loaded?


If you use Carbon: Use CFBundle to locate your image file. Use CGImageSource to load the image.
If you use Cocoa: Use [NSImage imageNamed:@"filename-without-extension"]
If you want to process you image into in CoreImage, you should use a CoreImage call. [CIImage initWithContentsOfURL:] for example.




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to put image file inside the project? (From: Winston Ma <email@hidden>)
 >Re: How to put image file inside the project? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How to put image file inside the project?
  • Next by Date: How to re-enable the Debug?
  • Previous by thread: Re: How to put image file inside the project?
  • Next by thread: How to re-enable the Debug?
  • Index(es):
    • Date
    • Thread