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?
Nobody knows?
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...
| Thread: | Author | Replies: | Views: | Last Post | |
| "Quit gamed and choose restart" | funkboy | 3 | 1,402 |
Dec 20, 2012 08:40 PM Last Post: funkboy |
|
| SDL and menu bar on OS X | A_SN_ | 9 | 8,162 |
Feb 7, 2012 11:51 AM Last Post: trailmix |
|
| "Application quit unexpectedly" | Relfos | 6 | 6,150 |
Feb 3, 2011 04:02 PM Last Post: OneSadCookie |
|
| Can't get menu bars to work. | XSTNX | 0 | 2,076 |
Jun 26, 2009 09:08 AM Last Post: XSTNX |
|
| GLUT apple menu close application | Rasterman | 31 | 14,234 |
Aug 15, 2007 04:48 PM Last Post: AnotherJake |
|

