• 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
Bundeling resources with xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bundeling resources with xcode


  • Subject: Bundeling resources with xcode
  • From: Ketil Kyrre Nordstad <email@hidden>
  • Date: Thu, 6 Nov 2003 11:58:41 +0100

Hi.

I am having some trouble with XCode and loading images in my application. Images are loaded as expected when I run the app from Xcode. However, if I copy the built app to my Applications folder/directory the images are not loaded.

I load my images with:

finished = [[NSImage alloc] initWithContentsOfFile: @"iYumyum.app/Contents/Resources/finished.png"];

If I use the libc function to print cwd I get '/Users/ketilkn/Documents/pb_tutorial/iYumyum/build' when I run from xcode. When running from Applications as stand alone I get / (root).

Why do this differ, and how do I fix this? Is there something I have to do when I add the images to xcode? I only dragged and dropped. Note that the images are in the correct directory of the app if I inspect it with finder, or Terminal.

I can not remember having this problem in Project Builder.

Thank you for your time.

Ketil Kyrre Nordstad
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Bundeling resources with xcode
      • From: Markus Hitter <email@hidden>
  • Prev by Date: project builder or xcode for Panther
  • Next by Date: Re: xcode-users digest, Vol 1 #41 - 21 msgs
  • Previous by thread: Re: project builder or xcode for Panther
  • Next by thread: Re: Bundeling resources with xcode
  • Index(es):
    • Date
    • Thread