[Mac] More defensive programming
authorthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 07:05:01 +0000 (09:05 +0200)
committerthefiddler <stapostol@gmail.com>
Wed, 23 Jul 2014 07:05:01 +0000 (09:05 +0200)
commit0a0a5d0af77477c693c7636b6ee93551133a3192
treee5d433eb3594a9ec471913857794d3653c1338f5
parent7cc3e922eec3500836ab508f920470b5d886cb3b
[Mac] More defensive programming

CocoaNativeWindow now checks for and reports failures to allocate
resources in its constructor. Additionally, it no longer calls UI
methods in the finalizer thread, as those methods will crash on Cocoa.
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs