Commit 5f5081a5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

MacOSX/Framework/VLCMediaListAspect.m: Use @"media" binding key, instead of @"Media".

parent a1a89a9f
......@@ -36,7 +36,7 @@
@end
@implementation VLCMediaListAspect (KeyValueCodingCompliance)
/* For the @"Media" key */
/* For the @"media" key */
- (int) countOfMedia
{
return [self count];
......@@ -53,7 +53,7 @@ static void HandleMediaListViewItemAdded(const libvlc_event_t *event, void *user
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
id self = user_data;
int index = event->u.media_list_view_item_added.index;
[self didChange:NSKeyValueChangeInsertion valuesAtIndexes:[NSIndexSet indexSetWithIndex:index] forKey:@"Media"];
[self didChange:NSKeyValueChangeInsertion valuesAtIndexes:[NSIndexSet indexSetWithIndex:index] forKey:@"media"];
[pool release];
}
static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void * user_data)
......@@ -61,7 +61,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
id self = user_data;
int index = event->u.media_list_view_item_deleted.index;
[self didChange:NSKeyValueChangeRemoval valuesAtIndexes:[NSIndexSet indexSetWithIndex:index] forKey:@"Media"];
[self didChange:NSKeyValueChangeRemoval valuesAtIndexes:[NSIndexSet indexSetWithIndex:index] forKey:@"media"];
[pool release];
}
......
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