• 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
Re: Can't *READ* from my Resources Directory??? [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
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

References: 
 >Can't *READ* from my Resources Directory??? (From: Francisco Tolmasky <email@hidden>)
 >Re: Can't *READ* from my Resources Directory??? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Can't *READ* from my Resources Directory???
  • Next by Date: Re: Core Data Inverse To-Many/To-One Bug? [RESOLVED]
  • Previous by thread: Re: Can't *READ* from my Resources Directory???
  • Next by thread: Manual KVO and will/didChangeValueForKey
  • Index(es):
    • Date
    • Thread