GLFW Mac OS X 10.7 Quit is a nop

Monkey Forums/Monkey Programming/GLFW Mac OS X 10.7 Quit is a nop

fictorial(Posted 2013) [#1]
GLFW target on Mac OS X 10.7 (I haven't tried 10.8) does not quit on cmd-Q nor upon selecting the Quit item from the File menu. This is for v68b.

Thanks


marksibly(Posted 2013) [#2]
You now have to manually check for 'close' clicks in glfw - eg:

Method OnUpdate()
   If KeyHit( KEY_CLOSE ) Error ""
   ...etc...
End



therevills(Posted 2013) [#3]
For new user Error "" is pretty strange to close the application, maybe wrap it with a user friendly-named function (eg ExitApp / CloseApp):

Function ExitApp:Void()
	Error ""
End


So the above would become:
Method OnUpdate()
   If KeyHit( KEY_CLOSE ) ExitApp()
   ...etc...
End