[vlc-devel] commit: macosx/framework: Implement write KVC for VLCMediaList. (Pierre d' Herbemont )

git version control git at videolan.org
Tue Jan 26 01:08:38 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Tue Jan 26 00:41:46 2010 +0100| [0d0e6fc3d330fa7aca50e85edd63f915688d85a7] | committer: Pierre d'Herbemont 

macosx/framework: Implement write KVC for VLCMediaList.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d0e6fc3d330fa7aca50e85edd63f915688d85a7
---

 projects/macosx/framework/Sources/VLCMediaList.m |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCMediaList.m b/projects/macosx/framework/Sources/VLCMediaList.m
index 272ee55..cf51cd6 100644
--- a/projects/macosx/framework/Sources/VLCMediaList.m
+++ b/projects/macosx/framework/Sources/VLCMediaList.m
@@ -187,7 +187,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
     return [self count];
 }
 
-- (id)objectInMediaAtIndex:(NSInteger)i
+- (id)objectInMediaAtIndex:(NSUInteger)i
 {
     return [self mediaAtIndex:i];
 }
@@ -197,6 +197,16 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
     return [cachedMedia count];
 }
 
+- (void)insertObject:(id)object inMediaAtIndex:(NSUInteger)i
+{
+    [self insertMedia:object atIndex:i];
+}
+
+- (void)removeObjectFromMediaAtIndex:(NSUInteger)i
+{
+    [self removeMediaAtIndex:i];
+}
+
 @synthesize delegate;
 
 - (BOOL)isReadOnly




More information about the vlc-devel mailing list