PDA

View Full Version : Enabling the "quit" menu function in an SDL program


ferum
2006.09.07, 05:36 PM
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?

ferum
2006.09.09, 04:58 PM
Nobody knows?

PowerMacX
2006.09.10, 06:35 PM
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.