• 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
Key Bindings: determine if a key is already set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Key Bindings: determine if a key is already set


  • Subject: Key Bindings: determine if a key is already set
  • From: David Hoerl <email@hidden>
  • Date: Thu, 25 Aug 2005 12:27:06 -0400

When a user decides to choose some key binding for a standard action (say moveForward in a textView), is there anyway to determine if an association has already been made (so you could warn the user)?

From my read of the text input system, the only way to do this would be to subclass the NSView, create and send a key down event through interpretKeyEvents: , and override doCommandBySelector: and insertText: .

However, I don't think that will work as some keys initiate a mark sequence, so the it starts getting messy fast.

Is there a better way?

David

PS: is there existing code to programmatically read the key binding dictionaries? Would that be a good way to do this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Finding all subclasses of a class ?
  • Next by Date: Re: LevelWindow for Dashboard?
  • Previous by thread: Re: support for CGDirectDisplayID?
  • Next by thread: RE: QTMovieView in a split view - very weird stuff (SOLVED - oddly)
  • Index(es):
    • Date
    • Thread