• 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???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't *READ* from my Resources Directory???


  • Subject: Re: Can't *READ* from my Resources Directory???
  • From: Cameron Hayne <email@hidden>
  • Date: Thu, 2 Jun 2005 02:57:18 -0400


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


_______________________________________________ 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
  • Follow-Ups:
    • Re: Can't *READ* from my Resources Directory??? [SOLVED]
      • From: Francisco Tolmasky <email@hidden>
    • Re: Can't *READ* from my Resources Directory???
      • From: Francisco Tolmasky <email@hidden>
References: 
 >Can't *READ* from my Resources Directory??? (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Manual KVO and will/didChangeValueForKey
  • Next by Date: Binding NSTableView Column Headers vs Cells (was: Bindings & NSTableView: setting cell as 'editable'...)
  • Previous by thread: Can't *READ* from my Resources Directory???
  • Next by thread: Re: Can't *READ* from my Resources Directory???
  • Index(es):
    • Date
    • Thread