• 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: Fritz Anderson <email@hidden>
  • Date: Fri, 26 Aug 2005 11:27:41 -0500

On 26 Aug 2005, at 10:47 AM, David Dunham wrote:

#ifdef LINUX
loadTexture("images/image.bmp");
#else
loadTexture("MyApp.app/Contents/Resources/image.bmp");
#endif

I'm just curios now if there's a cleaner way of doing this? Perhaps some preprocessor variable for "MyApp.app/Contents/ Resources"?


This will fail if any user renames your application (which they will do).

It will also fail as soon as the application is run stand-alone, as applications in Mac OS X are (at present) run with the working directory set to /.


    -- F

_______________________________________________
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: 
 >Re: Adding Resource Bundles (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Adding Resource Bundles
  • Next by Date: Re: Opening iChat .nib files with InterfaceBuilder fails
  • Previous by thread: Re: Adding Resource Bundles
  • Next by thread: User file cannot be parsed ???
  • Index(es):
    • Date
    • Thread