[Mac] Store a reference to callback delegates
authorthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 08:10:08 +0000 (10:10 +0200)
committerthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 08:10:08 +0000 (10:10 +0200)
commit4093b39fac6ecf8d872cd451e68a2ca8622c31e8
treec41fb3f3ea554e9f355b94e622b0e1a585fce806
parente81d8da068fff34821dd6f3c8032c41b245c51b5
[Mac] Store a reference to callback delegates

This avoids a potential crashes by the GC reclaiming the delegates
prematurely.
Source/OpenTK/Platform/MacOS/Cocoa/NSApplication.cs
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs