Re: NSTask: auxiliary executable does not see its data file

2012-08-01 Thread Jens Alfke
On Jul 30, 2012, at 8:08 AM, Daniel Stein wrote: > The tool tries to open the file with an ordinary call to fopen(): > f = fopen("my.data",READ_MODE); Of course this assumes the current directory is the one containing the my.data file. By default it won't be, because the tool inherits the curr

NSTask: auxiliary executable does not see its data file

2012-08-01 Thread Daniel Stein
[I posted this at discussions.apple.com, but realise that this is probably a more appropriate venue for a technical question] I am writing a simple Cocoa-ObjectiveC wrapper around a command-line tool written in C, and understand the basics of using NSTask, NSPipe, NSFileHandle and multiple