Forgot to qrefresh these extra parentheses before qfinishing. Fixes these comparisons being quite indiscriminate (at one point, GrowlSafari even tried to inject into Accessorizer).
1.1 --- a/Extras/GrowlSafari/GrowlSafariHelper.m Tue Sep 15 10:08:03 2009 -0700
1.2 +++ b/Extras/GrowlSafari/GrowlSafariHelper.m Tue Sep 15 13:23:39 2009 -0700
1.3 @@ -28,7 +28,7 @@
1.4 for(process in [[NSWorkspace sharedWorkspace] launchedApplications])
1.5 {
1.6 NSString *bundleID = [process objectForKey:@"NSApplicationBundleIdentifier"];
1.7 - if (bundleID && ([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame))
1.8 + if (bundleID && (([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame)))
1.9 {
1.10 if([[process objectForKey:@"NSApplicationProcessIdentifier"] integerValue] == pid)
1.11 {
2.1 --- a/Extras/GrowlSafari/GrowlSafariLoader.m Tue Sep 15 10:08:03 2009 -0700
2.2 +++ b/Extras/GrowlSafari/GrowlSafariLoader.m Tue Sep 15 13:23:39 2009 -0700
2.3 @@ -66,7 +66,7 @@
2.4 - (void) workspaceDidLaunchApplication:(NSNotification *)notification {
2.5 NSDictionary *launchedProcessInfo = [notification userInfo];
2.6 NSString *bundleID = [launchedProcessInfo objectForKey:@"NSApplicationBundleIdentifier"];
2.7 - if (bundleID && ([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame)) {
2.8 + if (bundleID && (([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame))) {
2.9 NSString *bundlePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"GrowlSafari" ofType:@"bundle"];
2.10 if (bundlePath) {
2.11 NSNumber *PIDNum = [launchedProcessInfo objectForKey:@"NSApplicationProcessIdentifier"];