• 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
How to generate file and get it into app's Resources directory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to generate file and get it into app's Resources directory?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: New Target > Cocoa Framework can't handle .c files. (DO try this at home! -- Easy)
  • Next by Date: Re: How to generate file and get it into app's Resources directory?
  • Previous by thread: Re: New Target > Cocoa Framework can't handle .c files. (DO try this at home! -- Easy)
  • Next by thread: Re: How to generate file and get it into app's Resources directory?
  • Index(es):
    • Date
    • Thread