How to generate file and get it into app's Resources directory?
How to generate file and get it into app's Resources directory?
- Subject: How to generate file and get it into app's Resources directory?
- From: Rick Mann <email@hidden>
- Date: Sat, 14 Mar 2009 21:52:42 -0700
Hi.
I'm trying to generate a sqlite3 file from a text file, and get the
result into my app bundle in the right place for resources. On the
iPhone, this seems to be at the top level of the app bundle, and for
Cocoa apps, of course, it's bundle/Resources.
It's easy enough to write a script to call sqlite3 and create a new
file from a text file of SQL statements. What I don't know is where to
put this resulting file.
Is there an environment variable that refers to the Resources
location, whatever it may be? There are a great many vars that
reference the right directory, but which one is the one that would
make sense for all target types?
Alternatively, is there a way to generate the file into a temp
directory, and have the copy bundle resources phase copy it to the
right place? How does it know where to put things?
TIA!
--
Rick
_______________________________________________
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