Created
October 31, 2011 21:58
-
-
Save beelsebob/1329144 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Wraith:Desktop tatd2$ clang -framework Foundation test.m | |
| Wraith:Desktop tatd2$ ./a.out | |
| 2011-10-31 21:57:46.840 a.out[916:707] Before | |
| 2011-10-31 21:57:46.843 a.out[916:707] After | |
| Wraith:Desktop tatd2$ cat test.m | |
| #import <Foundation/Foundation.h> | |
| int main (int argc, char **argv) | |
| { | |
| @autoreleasepool | |
| { | |
| NSLog(@"Before"); | |
| [NSTask launchedTaskWithLaunchPath:@"/bin/sleep" arguments:[NSArray arrayWithObject:@"20"]]; | |
| NSLog(@"After"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment