• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Capturing key events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capturing key events


  • Subject: Capturing key events
  • From: Greg Hurrell <email@hidden>
  • Date: Mon, 24 Feb 2003 19:53:33 +1030

I have an NSView in which I am trying to capture combinations of key
presses.

In this view I provide a - (void)keyDown:(NSEvent *)theEvent method.

Can anyone tell me why is it that I can capture things like
"Command+F10", but not, "Command+5"?

When I try to capture things like the latter, I just get the system
beeping at me. And my keyDown method is never even called... (I know it
must have something to do with a lot of those command+key combinations
being reserved for use by menus, but I am still curious to know where
this stuff is being intercepted.)

Thanks for any light you can shed on this topic...

Cheers
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa approachable by non-programmers ?
  • Next by Date: NSWindow resize limited to screen height?
  • Previous by thread: Table View with no selection
  • Next by thread: NSWindow resize limited to screen height?
  • Index(es):
    • Date
    • Thread