From: Kent Sutherland Date: Thu, 5 Feb 2004 16:38:10 +0000 (+0000) Subject: Uncommented the multisource playlist chooser. X-Git-Tag: v1.3~43 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/b62c6c9f99a0a3529e5a914b112e0d615b10e25c Uncommented the multisource playlist chooser. --- diff --git a/ITMTRemote.h b/ITMTRemote.h index b77fc22..0d2c21a 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -382,7 +382,7 @@ er's process managment. /*! * @method switchToPlaylistAtIndex: */ -//- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2; +- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2; /*! * @method switchToSongAtIndex: diff --git a/ITMTRemote.m b/ITMTRemote.m index b88b086..55e599b 100755 --- a/ITMTRemote.m +++ b/ITMTRemote.m @@ -264,10 +264,10 @@ return NO; } -/*- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2 +- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2 { return NO; -}*/ +} - (BOOL)switchToSongAtIndex:(int)index { diff --git a/MainController.m b/MainController.m index 05ef785..2400f9e 100755 --- a/MainController.m +++ b/MainController.m @@ -444,8 +444,8 @@ static MainController *sharedController; { ITDebugLog(@"Selecting playlist %i", index); NS_DURING - //[[self currentRemote] switchToPlaylistAtIndex:(index % 1000) ofSourceAtIndex:(index / 1000)]; - [[self currentRemote] switchToPlaylistAtIndex:index]; + [[self currentRemote] switchToPlaylistAtIndex:(index % 1000) ofSourceAtIndex:(index / 1000)]; + //[[self currentRemote] switchToPlaylistAtIndex:index]; NS_HANDLER [self networkError:localException]; NS_ENDHANDLER diff --git a/iTunesRemote.m b/iTunesRemote.m index f330917..0702568 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -661,14 +661,14 @@ return YES; } -/*- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2 +- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2 { ITDebugLog(@"Switching to playlist at index %i of source %i", index, index2); [[ITAppleEventCenter sharedCenter] sendAEWithSendString:[NSString stringWithFormat:@"'----':obj { form:'indx', want:type('cPly'), seld:long(%lu), from: obj { form:'indx', want:type('cSrc'), seld:long(%lu), from:'null'() } }", index - 1, index2 + 1] eventClass:@"hook" eventID:@"Play" appPSN:savedPSN]; //{ form:'indx', want:type('cPly'), seld:long(%lu), from:obj { form:'indx', want:type('cSrc'), seld:long('%lu'), from:'null'() } } -- obj { form:'indx', want:type('cSrc'), seld:long(1), from:'null'() } ITDebugLog(@"Done switching to playlist at index %i of source %i", index, index2); return YES; -}*/ +} - (BOOL)switchToSongAtIndex:(int)index {