Re: Can't *READ* from my Resources Directory??? [SOLVED]
Re: Can't *READ* from my Resources Directory??? [SOLVED]
- Subject: Re: Can't *READ* from my Resources Directory??? [SOLVED]
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 2 Jun 2005 00:36:14 -0700
I'm Sorry, you were absolutely right. In changing my code I forgot to remove the [NSString stringWithContentsOfURL:. It would have taken me forever to see that. Thank you so much!
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
Francisco Tolmasky 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