• 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: Adding Resource Bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Resource Bundles


  • Subject: Re: Adding Resource Bundles
  • From: Scott Tooker <email@hidden>
  • Date: Wed, 24 Aug 2005 14:01:18 -0700

On Mac OS X, if you have a bundle of any type (which includes applications and frameworks), the standard thing to do is to place any resources in the Resources folder of the bundle itself.

In your case, just add the images to the "Copy Bundle Resources" build phase of the application target and then use CFBundle APIs to get at the images.

Scott

On Aug 24, 2005, at 1:44 PM, Achal Oza wrote:

I recently ported over an OpenGL SDL application from Linux to OS X. The development environment is up and running but I'm having trouble figuring out what to do with my images.

For my Linux application I had the images stored under /MyApp/ images. However, this approach does not work with Xcode. Instead I copy the image directory to either /MyApp/build/Deployment/images or /MyApp/build/Development/images depending on my build configuration. I don't think this is correct.

I get the impression that I should create a resource bundle that contains all my images and then when I compile, this bundle is placed inside the /MyApp/build/Deployment/MyApp.app directory automatically. Is that correct? Any ideas on how to do it?

Thanks,
Achal Oza
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Adding Resource Bundles
      • From: Achal Oza <email@hidden>
    • Xcode 2.0 - WOSortOrder
      • From: Janice Cheung <email@hidden>
References: 
 >Adding Resource Bundles (From: Achal Oza <email@hidden>)

  • Prev by Date: Re: nib resources
  • Next by Date: Xcode 2.0 - WOSortOrder
  • Previous by thread: Adding Resource Bundles
  • Next by thread: Xcode 2.0 - WOSortOrder
  • Index(es):
    • Date
    • Thread