• 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
NSTextField keypress question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField keypress question


  • Subject: NSTextField keypress question
  • From: Edward Fink <email@hidden>
  • Date: Fri, 1 Nov 2002 21:32:45 -0500

How can I tell if the key combination of "ctrl g" was pressed in an
NSTextField?

To respond to some other key combinations I use:
- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView
doCommandBySelector:(SEL)commandSelector

However, when <ctrl><g> is pressed...commandSelector is "noop:"...but
it is also that value for other key combinations....so I am unsure how
to distinguish.

Thanks
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTextField keypress question
      • From: Edward Fink <email@hidden>
  • Prev by Date: Re: Cocoa really needs to be thread-safe
  • Next by Date: Re: Indexing text, pdf, .doc
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1467 - 15 msgs
  • Next by thread: Re: NSTextField keypress question
  • Index(es):
    • Date
    • Thread