1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#import <Foundation/Foundation.h> #import "NSFileManager+DirectoryLocations.h" int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *supportPath = [[NSFileManager defaultManager] applicationSupportDirectory]; // Take screenshot NSLog(@"%@", supportPath); [pool release]; return 0; }