Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2009 18:11
What would you like to do?
NSString *currentProcessBundleID = [[NSBundle mainBundle] bundleIdentifier];
NSLog(@"ClickToFlash: currentProcessBundleID: %@ %d", currentProcessBundleID, [currentProcessBundleID isEqualToString:@""]);
//=> ClickToFlash: currentProcessBundleID: 1
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@""]) {
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