Added capabilities NSDictionary prototype, as well as a completed one for
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 14 Mar 2003 19:48:21 +0000 (19:48 +0000)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 14 Mar 2003 19:48:21 +0000 (19:48 +0000)
iTunesRemote.

ITMTRemote.m
iTunesRemote.m

index d2f2ccc..8092d3e 100755 (executable)
 
 - (NSDictionary *)capabilities
 {
-    return nil;
+    return [NSDictionary dictionaryWithObjectsAndKeys:
+                [NSNumber numberWithBool: NO], @"Remote", // Set this to YES for a valid remote, otherwise the remote will be unusable.
+                [NSNumber numberWithBool: NO], @"Basic Track Control",
+                [NSNumber numberWithBool: NO], @"Track Information",
+                [NSNumber numberWithBool: NO], @"Track Navigation",
+                [NSNumber numberWithBool: NO], @"Upcoming Songs",
+                [NSNumber numberWithBool: NO], @"Playlists",
+                [NSNumber numberWithBool: NO], @"Volume",
+                [NSNumber numberWithBool: NO], @"Shuffle",
+                [NSNumber numberWithBool: NO], @"Repeat Modes",
+                [NSNumber numberWithBool: NO], @"Equalizer",
+                [NSNumber numberWithBool: NO], @"Track Rating",
+                nil];
 }
 
 - (ITMTRemotePlayerRunningState)playerRunningState
index 0a02b1b..ce496f8 100755 (executable)
 
 - (NSDictionary *)capabilities
 {
-    return nil;
+    return [NSDictionary dictionaryWithObjectsAndKeys:
+                [NSNumber numberWithBool: YES], @"Remote",
+                [NSNumber numberWithBool: YES], @"Basic Track Control",
+                [NSNumber numberWithBool: YES], @"Track Information",
+                [NSNumber numberWithBool: YES], @"Track Navigation",
+                [NSNumber numberWithBool: YES], @"Upcoming Songs",
+                [NSNumber numberWithBool: YES], @"Playlists",
+                [NSNumber numberWithBool: YES], @"Volume",
+                [NSNumber numberWithBool: YES], @"Shuffle",
+                [NSNumber numberWithBool: YES], @"Repeat Modes",
+                [NSNumber numberWithBool: YES], @"Equalizer",
+                [NSNumber numberWithBool: YES], @"Track Rating",
+                nil];
 }
 
 - (ITMTRemotePlayerRunningState)playerRunningState