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
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DebugAppleEvents"]) { | |
NSError *error = nil; | |
NSFileManager *fm = [NSFileManager defaultManager]; | |
NSURL *logsDir = [fm URLForDirectory:NSLibraryDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:nil]; | |
logsDir = [logsDir URLByAppendingPathComponent:@"Logs"]; | |
logsDir = [logsDir URLByAppendingPathComponent:@"Paparazzi!"]; | |
if (![logsDir checkResourceIsReachableAndReturnError:&error]) { | |
if (![fm createDirectoryAtURL:logsDir withIntermediateDirectories:YES attributes:nil error:&error]) |
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
- (void)sendEvent:(NSEvent *)event { | |
if ([event type] == NSAppKitDefined && ([event subtype] & NSApplicationActivatedEventType) && [[event window] respondsToSelector:@selector(_popover)]) | |
return; | |
[super sendEvent:event]; | |
} |
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
javascript:var a = document.getElementById('preload');a.style.marginLeft = '-200px';a.style.width = '1300px';a.style.height = '1200px';void(0); |
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
NSString *errorString; | |
NSData *data = [NSPropertyListSerialization dataFromPropertyList:plist format:NSPropertyListXMLFormat_v1_0 errorDescription:&errorString]; | |
if (!data) | |
NSLog(@"%@", errorString); |
NewerOlder