From: Kent Sutherland Date: Wed, 26 Feb 2003 02:46:27 +0000 (+0000) Subject: Changed name from iTunesLaunched to audioPlayerLaunched, same with X-Git-Tag: v1.0~218 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/76697ec8bb02a9009950ccb27d8ccff66a4eba4a Changed name from iTunesLaunched to audioPlayerLaunched, same with Terminated. --- diff --git a/MenuTunes.h b/MenuTunes.h index 6402eb1..92aade2 100755 --- a/MenuTunes.h +++ b/MenuTunes.h @@ -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; diff --git a/MenuTunes.m b/MenuTunes.m index 1d8f67e..be4dcbf 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -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;