gl/cocoa: Fix example on Mac OS X 10.10
authorThijs Vermeir <thijs.vermeir@barco.com>
Mon, 1 Dec 2014 09:59:32 +0000 (10:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:51 +0000 (19:31 +0000)
commit035f6f975a26a48ce3e31e386def8d4ab05a5fca
treecc68397d658e327f458bbe75fd0d5fa1b052f9f4
parentbbac8bf8d0b5812289665e801c11f3a20ed6d967
gl/cocoa: Fix example 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.

Similar to https://bugzilla.gnome.org/show_bug.cgi?id=738740
tests/examples/gl/cocoa/cocoa-videooverlay.m