-
-
Save chucker/55930 to your computer and use it in GitHub Desktop.
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); | |
//=> ClickToFlash: updater: SUUpdater </Users/wolf/Library/Internet Plug-Ins/ClickToFlash.plugin> | |
[updater checkForUpdates:nil]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment