Uncommented the multisource playlist chooser.
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 5 Feb 2004 16:38:10 +0000 (16:38 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 5 Feb 2004 16:38:10 +0000 (16:38 +0000)
ITMTRemote.h
ITMTRemote.m
MainController.m
iTunesRemote.m

index b77fc22..0d2c21a 100755 (executable)
@@ -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:
index b88b086..55e599b 100755 (executable)
     return NO;
 }
 
-/*- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2
+- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2
 {
     return NO;
-}*/
+}
 
 - (BOOL)switchToSongAtIndex:(int)index
 {
index 05ef785..2400f9e 100755 (executable)
@@ -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
index f330917..0702568 100755 (executable)
     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
 {