Re: How to put files in app bundle?
Re: How to put files in app bundle?
- Subject: Re: How to put files in app bundle?
- From: Michael Cinkosky <email@hidden>
- Date: Wed, 2 Feb 2005 10:23:00 -0700
I just place files somewhere in the source directory structure (perhaps not necessary) and add them to the Resource group using the Add File command. Then use something like:
[[NSBundle mainBundle] pathForResource: @"myFile" ofType: @"pdf"]
to access the file in code. I have not tried to tinker with the contents of the bundle at run time. Why not use something in ~/Library for the run-time copies, which you could set up in the application itself?
Michael
On Feb 2, 2005, at 9:49 AM, Mark Dawson wrote:
When I build my app bundle, I'd like to put some files in the /Contents/Resources folder, along with create a /Contents/SharedSupport folder, and copy files into that folder. I didn't notice a "copy" build phase. Do I need to use the shell scripts to do what I want? Is there some other recommended way?
_______________________________________________
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