Forgot to qrefresh these extra parentheses before qfinishing. Fixes these comparisons being quite indiscriminate (at one point, GrowlSafari even tried to inject into Accessorizer).
authorPeter Hosey <hg@boredzo.org>
Tue Sep 15 13:23:39 2009 -0700 (10 months ago)
changeset 4402fc7016ea4fc2
parent 440124c2a3482ec3
child 4403972fe5462943
Forgot to qrefresh these extra parentheses before qfinishing. Fixes these comparisons being quite indiscriminate (at one point, GrowlSafari even tried to inject into Accessorizer).
Extras/GrowlSafari/GrowlSafariHelper.m
Extras/GrowlSafari/GrowlSafariLoader.m
     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"];