Some more work on the iTunes remote... I'm starting to require testing,
[MenuTunes.git] / iTunesPlaylist.m
index f571ba7..60c01a5 100755 (executable)
 
 @implementation iTunesPlaylist
 
-+ (id)playlistForIndex:(int)index {
++ (id)playlistWithIndex:(int)index {
+    return [[[iTunesPlaylist alloc] initWithIndex:index] autorelease];
+}
+
+- (id)initWithIndex:(int)index {
+    if ( ( self = [super init] ) ) {
+        _index = index;
+    }
+    return self;
 }
 
 @end