Commit 17207ab1 authored by Emmanuel de Roux's avatar Emmanuel de Roux Committed by Pierre d'Herbemont

macosx/framework: Added [VLCMediaList initWithArray:] method

Signed-off-by: default avatarPierre d'Herbemont <pdherbemont@free.fr>
parent 0c4edec7
......@@ -57,6 +57,12 @@ extern NSString * VLCMediaListItemDeleted;
NSMutableArray * cachedMedia; //< Private copy of media objects.
}
/**
* Init a MediaList with the media contained in array.
* \array an array of VLCMedia.
*/
- (id)initWithArray:(NSArray *)array;
/* Operations */
/**
* TODO: Documentation - [VLCMediaList lock]
......
......@@ -86,6 +86,17 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
return self;
}
- (id)initWithArray:(NSArray *)array
{
self = [self init];
if (!self)
return nil;
for (VLCMedia *media in array)
[self addMedia:media];
return self;
}
- (void)release
{
@synchronized(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment