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.
Similar to https://bugzilla.gnome.org/show_bug.cgi?id=738740
/* */
/* ============================================================= */
-@interface MainWindow: NSWindow {
+@interface MainWindow: NSWindow <NSApplicationDelegate> {
GMainLoop *m_loop;
GstElement *m_pipeline;
gboolean m_isClosed;
backing: NSBackingStoreBuffered defer: NO screen: nil];
[self setReleasedWhenClosed:NO];
- [NSApp setDelegate:self];
+ [[NSApplication sharedApplication] setDelegate:self];
[self setTitle:@"gst-plugins-gl implements videooverlay interface"];