Changed name from iTunesLaunched to audioPlayerLaunched, same with
authorKent Sutherland <ksuther@ithinksw.com>
Wed, 26 Feb 2003 02:46:27 +0000 (02:46 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Wed, 26 Feb 2003 02:46:27 +0000 (02:46 +0000)
Terminated.

MenuTunes.h
MenuTunes.m

index 6402eb1..92aade2 100755 (executable)
@@ -58,8 +58,8 @@
     StatusWindow *statusWindow; //Shows track info and upcoming songs.
 }
 
-- (void)iTunesLaunched:(NSNotification *)note;
-- (void)iTunesTerminated:(NSNotification *)note;
+- (void)remotePlayerLaunched:(NSNotification *)note;
+- (void)remotePlayerTerminated:(NSNotification *)note;
 
 - (void)registerDefaultsIfNeeded;
 - (void)rebuildMenu;
index 1d8f67e..be4dcbf 100755 (executable)
@@ -46,17 +46,17 @@ Things to do:
     currentRemote = [self loadRemote];
     [currentRemote begin];
     
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(iTunesTerminated:) name:@"ITMTRemoteAppDidTerminateNotification" object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(iTunesLaunched:) name:@"ITMTRemoteAppDidLaunchNotification" object:nil];
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(remotePlayerTerminated:) name:@"ITMTRemoteAppDidTerminateNotification" object:nil];
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(remotePlayerLaunched:) name:@"ITMTRemoteAppDidLaunchNotification" object:nil];
     
     [self registerDefaultsIfNeeded];
     
     menu = [[NSMenu alloc] initWithTitle:@""];
     
     if ([currentRemote isAppRunning]) {
-        [self iTunesLaunched:nil];
+        [self remotePlayerLaunched:nil];
     } else {
-        [self iTunesTerminated:nil];
+        [self remotePlayerTerminated:nil];
     }
     
     statusItem = [[ITStatusItem alloc] initWithStatusBar:[NSStatusBar systemStatusBar]
@@ -638,7 +638,7 @@ Things to do:
     }
 }
 
-- (void)iTunesLaunched:(NSNotification *)note
+- (void)remotePlayerLaunched:(NSNotification *)note
 {
     isAppRunning = YES;
     
@@ -650,7 +650,7 @@ Things to do:
     [statusItem setMenu:menu]; //Set the menu back to the main one
 }
 
-- (void)iTunesTerminated:(NSNotification *)note
+- (void)remotePlayerTerminated:(NSNotification *)note
 {
     isAppRunning = NO;