X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/88a188f0aa37a7a6402d3d71031244e88104f7a0..7180b875955a7353df34201ea83b78fa6429468d:/MenuTunes.m 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;