I've setup a test where I run a command-line app that needs lots of attention, so to speak. It should (does) have lots of output but I can't seem to get any. Its interactive so a one-shot run isn't possible but if it were I could do that.
I have:
Code:
[[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(dataRead
name:
NSFileHandleReadToEndOfFileCompletionNotification object: outputFileHandle];
before I launch the task. And, in my dataRead method I have NSLog(@"got something"); for now. Is that right?
Im just a confused newbie, I guess. Any ideas or help would be great!
Thanks in advance!