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 <[email protected]>:
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]