Commit d37c8970 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

MacOSX/Framework/VLCMediaPlayer.m: Fix KVO.

parent 9d6eca0c
......@@ -125,8 +125,18 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
@implementation VLCMediaPlayer
/* Bindings */
+ (id)keysPathsForValuesAffectingPlaying { return [NSSet setWithObject:@"state"]; }
+ (id)keysPathsForValuesAffectingSeekable { return [NSSet setWithObjects:@"state", @"media"]; }
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key
{
static NSDictionary * dict = nil;
if( !dict )
{
dict = [[NSDictionary dictionaryWithObjectsAndKeys:
[NSSet setWithObject:@"state"], @"playing",
[NSSet setWithObjects:@"state", @"media", nil], @"seekable",
nil] retain];
}
return [dict objectForKey: key];
}
/* Contructor */
- (id)init
......
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