HardwareGrowler now shows appropriate icons for Airport and Network events - the older ones no longer exist on more recent systems.
authordiggory
Mon Jul 07 19:34:48 2008 +0000 (2008-07-07)
changeset 4144c78b283d2fca
parent 4143 f673f14da226
child 4145 5f49950abfbb
HardwareGrowler now shows appropriate icons for Airport and Network events - the older ones no longer exist on more recent systems.
Extras/HardwareGrowler/AppController.m
     1.1 --- a/Extras/HardwareGrowler/AppController.m	Mon Jul 07 19:05:00 2008 +0000
     1.2 +++ b/Extras/HardwareGrowler/AppController.m	Mon Jul 07 19:34:48 2008 +0000
     1.3 @@ -139,10 +139,16 @@
     1.4  	static CFDataRef airportIconData = NULL;
     1.5  
     1.6  	if (!airportIconData) {
     1.7 -		CFURLRef appURL = (CFURLRef)copyURLForApplication(@"Airport Admin Utility.app");
     1.8 +		CFURLRef appURL = (CFURLRef)copyURLForApplication(@"Airport Utility.app");
     1.9  		if (appURL) {
    1.10  			airportIconData = (CFDataRef)copyIconDataForURL((NSURL *)appURL);
    1.11  			CFRelease(appURL);
    1.12 +		} else {
    1.13 +			appURL = (CFURLRef)copyURLForApplication(@"Airport Admin Utility.app");
    1.14 +			if (appURL) {
    1.15 +				airportIconData = (CFDataRef)copyIconDataForURL((NSURL *)appURL);
    1.16 +				CFRelease(appURL);
    1.17 +			}			
    1.18  		}
    1.19  	}
    1.20  
    1.21 @@ -154,7 +160,7 @@
    1.22  	static CFDataRef ipIconData = NULL;
    1.23  
    1.24  	if (!ipIconData) {
    1.25 -		CFURLRef appURL = (CFURLRef)copyURLForApplication(@"Internet Connect.app");
    1.26 +		CFURLRef appURL = (CFURLRef)copyURLForApplication(@"Network Utility.app");
    1.27  		if (appURL) {
    1.28  			ipIconData = (CFDataRef)copyIconDataForURL((NSURL *)appURL);
    1.29  			CFRelease(appURL);