From: Kent Sutherland Date: Mon, 24 May 2004 13:46:33 +0000 (+0000) Subject: Searches for a missing server when a new one gets registered. X-Git-Tag: v1.3~7 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/0e4a6623849f7fd40f3c577e08e9ca999abdcc7e Searches for a missing server when a new one gets registered. --- diff --git a/MainController.h b/MainController.h index d29e371..6db9977 100755 --- a/MainController.h +++ b/MainController.h @@ -77,6 +77,7 @@ - (void)setServerStatus:(BOOL)newStatus; - (int)connectToServer; - (BOOL)disconnectFromServer; +- (void)checkForRemoteServer; - (void)networkError:(NSException *)exception; // diff --git a/MainController.m b/MainController.m index c2acaf1..011f73e 100755 --- a/MainController.m +++ b/MainController.m @@ -33,7 +33,6 @@ @interface MainController(Private) - (ITMTRemote *)loadRemote; - (void)setLatestSongIdentifier:(NSString *)newIdentifier; -- (void)checkForRemoteServer; - (void)applicationLaunched:(NSNotification *)note; - (void)applicationTerminated:(NSNotification *)note; @end diff --git a/NetworkController.m b/NetworkController.m index 33cee8f..41bf4ac 100755 --- a/NetworkController.m +++ b/NetworkController.m @@ -308,6 +308,9 @@ static NetworkController *sharedController; { ITDebugLog(@"Resolved service named %@.", [sender name]); [[NSNotificationCenter defaultCenter] postNotificationName:@"ITMTFoundNetService" object:nil]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useSharedPlayer"] && !connectedToServer) { + [[MainController sharedController] checkForRemoteServer]; + } [sender stop]; }