Added Shuffle and Loop mode support.
[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