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)
committerThijs Vermeir <thijs.vermeir@barco.com>
Mon, 1 Dec 2014 09:59:32 +0000 (10:59 +0100)
commit6215b5dd14b7a5f686514b7958ae25457cb7ae36
tree97a6caaf1cfdf93fba6ef4d8391b1e4d13fb42ae
parent87694c223248283cd3c55b523879ec62fd90d761
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