From fe02e5023c4966a4d97a0999eca92c68be8aa15e Mon Sep 17 00:00:00 2001 From: Akemi Date: Sat, 14 Jan 2017 17:10:08 +0100 Subject: cocoa: move updateBorder method to the protocol we are calling the method on a NSWindow object that may not respond to that call, since its a method of MpvVideoWindow. add the method to our protocol and rename that protocol to reflect the change. --- video/out/cocoa/window.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video/out/cocoa') diff --git a/video/out/cocoa/window.h b/video/out/cocoa/window.h index 352eba61d6..af04b2b1c6 100644 --- a/video/out/cocoa/window.h +++ b/video/out/cocoa/window.h @@ -18,14 +18,14 @@ #import #import "video/out/cocoa/mpvadapter.h" -@protocol MpvSizing +@protocol MpvWindowUpdate - (void)queueNewVideoSize:(NSSize)newSize; +- (void)updateBorder:(int)border; @end -@interface MpvVideoWindow : NSWindow +@interface MpvVideoWindow : NSWindow @property(nonatomic, retain) MpvCocoaAdapter *adapter; - (BOOL)canBecomeKeyWindow; - (BOOL)canBecomeMainWindow; - (void)mulSize:(float)multiplier; -- (void)updateBorder:(int)border; @end -- cgit v1.2.3