diff options
| author | Teddy Wing | 2012-07-20 23:13:14 -0400 |
|---|---|---|
| committer | Teddy Wing | 2012-07-20 23:13:14 -0400 |
| commit | 7720dba1e726bdf91a6ae4191fe39285eeb1dee3 (patch) | |
| tree | d8637ca5402dbf0e7f1604f7dfa2b1b711ad6634 /On Task.m | |
| parent | f4bcc804cb0e277c21fbcfb3c7247644a5a2590c (diff) | |
| download | On-Task-7720dba1e726bdf91a6ae4191fe39285eeb1dee3.tar.bz2 | |
Added category from Matt Gallagher to get the Application Support director for my application. Didn't end up working, 10.5+ only, even after my edits.
Diffstat (limited to 'On Task.m')
| -rw-r--r-- | On Task.m | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,10 +1,15 @@ #import <Foundation/Foundation.h> +#import "NSFileManager+DirectoryLocations.h" + int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - - // insert code here... - NSLog(@"Hello, World!"); + + NSString *supportPath = [[NSFileManager defaultManager] applicationSupportDirectory]; + + // Take screenshot + NSLog(@"%@", supportPath); + [pool release]; return 0; } |
