Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- NSDictionary *screencaptureDefaults = [defaults persistentDomainForName:@"com.apple.screencapture"];
- NSLog(@"Defaults %@", screencaptureDefaults);
- if (screencaptureDefaults) {
- NSString *location = [screencaptureDefaults objectForKey:@"location"];
- if (location && (location = [location stringByExpandingTildeInPath]) && [[NSFileManager defaultManager] fileExistsAtPath:location]) {
- screenshotLocation = [[NSString stringWithString:location] retain];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement