Re: How to generate file and get it into app's Resources directory?
Re: How to generate file and get it into app's Resources directory?
- Subject: Re: How to generate file and get it into app's Resources directory?
- From: Chris Espinosa <email@hidden>
- Date: Sat, 14 Mar 2009 22:02:11 -0700
On Mar 14, 2009, at 9:52 PM, Rick Mann wrote: 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?
Chris |
_______________________________________________
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