Re: Can't *READ* from my Resources Directory???
Re: Can't *READ* from my Resources Directory???
- Subject: Re: Can't *READ* from my Resources Directory???
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 2 Jun 2005 00:31:04 -0700
I've NSLoged it all, its the file path. Plus, as soon as i change
the file to one outside the bundle it works.
On Jun 1, 2005, at 11:57 PM, Cameron Hayne wrote:
On 2-Jun-05, at 1:13 AM, Francisco Tolmasky wrote:
In the application I'm running I launch a subprocess (NSTask) that
uses the standard php tool to preprocess a file in my resources
directory. Now, when I was testing, I had it outside and it was
working fine, but as soon as I put it in my apps resources
directory, php refuses to work. It's very strange, I get
something along the lines of this:
Could not open input file: <prints out contents of file>.
That error message makes it seem that you are passing a string
containing the contents of the file as an argument to the NSTask
instead of the filename.
Look again at what you are passing to NSTask's setArguments method.
--
Cameron Hayne
email@hidden
Francisco Tolmasky
email@hidden
www-scf.usc.edu/~tolmasky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden