Enabling the "quit" menu function in an SDL program
I have an SDL based program that uses a nib file for the menu bar. Every time I run it the run log informs me that it "Could not connect the action quit: to target of class SDLMain". As you can guess the Quit menu item does not work, and "command Q" (hmmâ€¦ how do you type the clover sign?) keyboard shortcut is likewise disabled. What do I have to add/change in SDLMain.m to fix this?
All my SDL-based code is on my desktop machine, 30 something miles from where I am right now, so I don't have it handy, but the way I implemented menu & shortcut support (if I remember correctly) was not with a NIB but by adding the menus directly in code, in SDLMain.m.
Possibly Related Threads...
|"Quit gamed and choose restart"||funkboy||3||9,144||
Dec 20, 2012 08:40 PM
Last Post: funkboy
|SDL and menu bar on OS X||A_SN_||9||13,236||
Feb 7, 2012 11:51 AM
Last Post: trailmix
|"Application quit unexpectedly"||Relfos||6||8,970||
Feb 3, 2011 04:02 PM
Last Post: OneSadCookie
|Can't get menu bars to work.||XSTNX||0||2,900||
Jun 26, 2009 09:08 AM
Last Post: XSTNX
|GLUT apple menu close application||Rasterman||31||18,941||
Aug 15, 2007 04:48 PM
Last Post: AnotherJake