This file contains 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 *currentProcessBundleID = [[NSBundle mainBundle] bundleIdentifier]; | |
NSLog(@"ClickToFlash: currentProcessBundleID: %@ %d", currentProcessBundleID, [currentProcessBundleID isEqualToString:@"com.apple.Safari"]); | |
//=> ClickToFlash: currentProcessBundleID: com.apple.Safari 1 | |
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.Safari"]) { | |
NSLog(@"ClickToFlash: bundleForClass self: %@", [[NSBundle bundleForClass:[self class]] bundleIdentifier]); | |
//=> ClickToFlash: bundleForClass self: com.github.rentzsch.clicktoflash | |
static SUUpdater *updater = nil; | |
if (!updater) { | |
updater = [SUUpdater updaterForBundle:[NSBundle bundleForClass:[self class]]]; | |
NSLog(@"ClickToFlash: updater: %@", updater); |