Enabling the "quit" menu function in an SDL program

Posts: 185
Joined: 2005.02
Post: #1
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?
Quote this message in a reply
Posts: 185
Joined: 2005.02
Post: #2
Nobody knows?
Quote this message in a reply
Posts: 776
Joined: 2003.04
Post: #3
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  "Quit gamed and choose restart" funkboy 3 10,056 Dec 20, 2012 08:40 PM
Last Post: funkboy
  SDL and menu bar on OS X A_SN_ 9 15,763 Feb 7, 2012 11:51 AM
Last Post: trailmix
  "Application quit unexpectedly" Relfos 6 10,139 Feb 3, 2011 04:02 PM
Last Post: OneSadCookie
  Can't get menu bars to work. XSTNX 0 3,207 Jun 26, 2009 09:08 AM
Last Post: XSTNX
  GLUT apple menu close application Rasterman 31 22,956 Aug 15, 2007 04:48 PM
Last Post: AnotherJake