aboutsummaryrefslogtreecommitdiffstats
path: root/On Task.m
diff options
context:
space:
mode:
authorTeddy Wing2012-07-20 23:13:14 -0400
committerTeddy Wing2012-07-20 23:13:14 -0400
commit7720dba1e726bdf91a6ae4191fe39285eeb1dee3 (patch)
treed8637ca5402dbf0e7f1604f7dfa2b1b711ad6634 /On Task.m
parentf4bcc804cb0e277c21fbcfb3c7247644a5a2590c (diff)
downloadOn-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.m11
1 files changed, 8 insertions, 3 deletions
diff --git a/On Task.m b/On Task.m
index 08675eb..412ce68 100644
--- a/On Task.m
+++ b/On Task.m
@@ -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;
}