Commits

Christos Chryssochoidis  committed 9183ad0

Typos correction

  • Participants
  • Parent commits c3149ce

Comments (0)

Files changed (3)

File English.lproj/MainMenu.xib

 				<string key="NSName">_NSMainMenu</string>
 			</object>
 			<object class="NSCustomObject" id="976324537">
-				<string key="NSClassName">Location_IndicatorAppDelegate</string>
+				<string key="NSClassName">Network_Location_IndicatorAppDelegate</string>
 			</object>
 			<object class="NSCustomObject" id="755631768">
 				<string key="NSClassName">NSFontManager</string>
 			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
 				<bool key="EncodedWithXMLCoder">YES</bool>
 				<object class="IBPartialClassDescription">
-					<string key="className">Location_IndicatorAppDelegate</string>
+					<string key="className">Network_Location_IndicatorAppDelegate</string>
 					<string key="superclassName">NSObject</string>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 						<string key="majorKey">IBProjectSource</string>

File Network_Location_IndicatorAppDelegate.h

 //
 
 #import <Cocoa/Cocoa.h>
+#import <SystemConfiguration/SCNetworkConfiguration.h>
+#import <SystemConfiguration/SCPreferences.h>
+#import <SystemConfiguration/SCDynamicStore.h>
 
-@interface Location_IndicatorAppDelegate : NSObject <NSApplicationDelegate> {
+@interface Network_Location_IndicatorAppDelegate : NSObject <NSApplicationDelegate> {
 //    NSWindow *window;
 //	IBOutlet NSMenu *statusMenu;
     NSStatusItem * statusItem;

File Network_Location_IndicatorAppDelegate.m

 //
 
 #import "Network_Location_IndicatorAppDelegate.h"
-#import <SystemConfiguration/SCNetworkConfiguration.h>
-#import <SystemConfiguration/SCPreferences.h>
-#import <SystemConfiguration/SCDynamicStore.h>
 
-@implementation Location_IndicatorAppDelegate
+@implementation Network_Location_IndicatorAppDelegate
 
 //@synthesize window;
 @synthesize statusItem;
 
 void updateLocation(SCDynamicStoreRef	store, CFArrayRef changedKeys, void	*info) {
 	NSLog(@"updateLocation is being run!");
-	SCPreferencesRef prefs = SCPreferencesCreate(NULL, CFSTR("Location Indicator"), NULL);
+	SCPreferencesRef prefs = SCPreferencesCreate(NULL, CFSTR("Network Location Indicator"), NULL);
 	SCNetworkSetRef currLoc = SCNetworkSetCopyCurrent(prefs);
 	NSLog(@"info is of class:%@", [(id)info class]);
 	[[(id)info statusItem] setTitle:(NSString *)SCNetworkSetGetName(currLoc)];
 //	[self makeMenu];
 	
 	SCDynamicStoreContext context = {0, self, NULL, NULL, NULL};
-	SCDynamicStoreRef dynStore = SCDynamicStoreCreate(NULL, CFSTR("Location Indicator"), updateLocation, &context);  
+	SCDynamicStoreRef dynStore = SCDynamicStoreCreate(NULL, CFSTR("Network Location Indicator"), updateLocation, &context);  
 	
 	statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength: 37];
 	[statusItem retain];
 	[statusItem setHighlightMode:YES];
 	
 //	[statusItem setMenu:statusMenu];
-	SCPreferencesRef prefs = SCPreferencesCreate(NULL, CFSTR("Location Indicator"), NULL);
+	SCPreferencesRef prefs = SCPreferencesCreate(NULL, CFSTR("Network Location Indicator"), NULL);
 	SCNetworkSetRef currLoc = SCNetworkSetCopyCurrent(prefs);
 	[statusItem setTitle:(NSString *)SCNetworkSetGetName(currLoc)];
 	[statusItem setToolTip:@"Current network location"];