Ok There are several questions about stack overflows about this. This question was the only one that comes closest to mines but uses notifications.
The code is very simple. Create a new empty Mac OSX project and simply paste the following code into the applicationDidFinishLaunching: method applicationDidFinishLaunching: It should get the path to any executable file (in this case GIT).
NSTask *aTask = [[NSTask alloc] init]; NSPipe *outputPipe = [NSPipe pipe]; NSPipe *errorPipe = [NSPipe pipe]; [aTask setStandardOutput: outputPipe]; [aTask setStandardError: errorPipe]; [aTask setArguments:[NSArray arrayWithObject:@"which"]]; [aTask setLaunchPath:@"/usr/bin/git"]; NSFileHandle *outputFileHandler = [outputPipe fileHandleForReading]; NSFileHandle *errorFileHandler = [errorPipe fileHandleForReading]; [aTask launch]; [aTask waitUntilExit];
This code sets up two reading channels and executes one command: which git .
If I run this in Xcode, I will get these results:
Error value: "" Output Value: /usr/bin/git
If I go to the build / Products / Debug folder and double-click the executable, I will send this message in the console application:

Question So, what is the problem please just donβt make an alternative solution ... I also want to know what the problem is .. thanks.
iOS Calendar View OnMyProfile
source share