mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gl/cocoa: Fix for building on Mac OS X 10.10
Using NSApp directly seems to confuse something, as the compiler was expecting an id<NSFileManagerDelegate>. Switched to using [NSApplication sharedApplication], and specified the delegate protocol on the window class as well. https://bugzilla.gnome.org/show_bug.cgi?id=738740
This commit is contained in:
parent
ed6be7fead
commit
02a0b92d9d
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
/* */
|
||||
/* =============================================================*/
|
||||
|
||||
@interface GstGLNSWindow: NSWindow {
|
||||
@interface GstGLNSWindow: NSWindow <NSApplicationDelegate> {
|
||||
BOOL m_isClosed;
|
||||
GstGLWindowCocoa *window_cocoa;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa, NSRect rect)
|
|||
|
||||
GST_DEBUG ("NSWindow id: %"G_GUINTPTR_FORMAT, (guintptr) priv->internal_win_id);
|
||||
|
||||
[NSApp setDelegate: priv->internal_win_id];
|
||||
[[NSApplication sharedApplication] setDelegate: priv->internal_win_id];
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue