• 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
Get *all* key events to display in NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get *all* key events to display in NSTextField?


  • Subject: Get *all* key events to display in NSTextField?
  • From: Dale Gillard <email@hidden>
  • Date: Thu, 4 Mar 2004 23:19:30 +1100

I'd like to provide a preference to my users so they can configure hotkeys for various functions.

I've searched the archives and Googled, but can't find anything that provides a solution or advice for doing this. I've read messages from Douglas Davidson suggesting not to subclass NSTextField or NSTextView (for good reasons). So I subclassed NSFormatter but found its limited too, just like NSTextField or NSTextView, and cannot receive certain key events (eg Command+1, F4, etc).

Is the only solution to create a custom NSView, draw the outline and focus ring, and override keyDown: to capture the full range of key events available?

Thanks

Dale
_______________________________________________
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: Get *all* key events to display in NSTextField?
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Methods returning const char*'s [or similar] - am I responsible for freeing the pointer or not?
  • Next by Date: Re: Get *all* key events to display in NSTextField?
  • Previous by thread: Re: Methods returning const char*'s [or similar] - am I responsible for freeing the pointer or not?
  • Next by thread: Re: Get *all* key events to display in NSTextField?
  • Index(es):
    • Date
    • Thread