Hello,

I have not tried it out in code, but generally, printf goes to "standard out" 
STDOUT_FILENO (whereas NSLog goes to STDERR_FILENO)

You can redirect all of your output into a file, for example:

- (void) redirectSTDOUT {
    NSError *error;
    self.fileHandle = [NSFileHandle fileHandleForWritingToURL:self.tmpFileURL 
error:&error];
    self.fileDescriptor = [self.fileHandle fileDescriptor];

    dup2(self.fileDescriptor, STDOUT_FILENO);
}

Now, all of your stdout code will go to into a file.

While this does not exactly answer your question, maybe it helps

Alex

Am 28.10.2014 um 11:13 schrieb Jonathan Taylor <jonathan.tay...@glasgow.ac.uk>:

> This email sent to be...@mac.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to