Bundeling resources with xcode
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.