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
/* */
/* =============================================================*/
-@interface GstGLNSWindow: NSWindow {
+@interface GstGLNSWindow: NSWindow <NSApplicationDelegate> {
BOOL m_isClosed;
GstGLWindowCocoa *window_cocoa;
}
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;
}