Enabling the "quit" menu function in an SDL program

Member
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
Member
Posts: 185
Joined: 2005.02
Post: #2
Nobody knows?
Quote this message in a reply
Moderator
Posts: 771
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 7,326 Dec 20, 2012 08:40 PM
Last Post: funkboy
  SDL and menu bar on OS X A_SN_ 9 9,894 Feb 7, 2012 11:51 AM
Last Post: trailmix
  "Application quit unexpectedly" Relfos 6 7,602 Feb 3, 2011 04:02 PM
Last Post: OneSadCookie
  Can't get menu bars to work. XSTNX 0 2,441 Jun 26, 2009 09:08 AM
Last Post: XSTNX
  GLUT apple menu close application Rasterman 31 15,693 Aug 15, 2007 04:48 PM
Last Post: AnotherJake