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

Re: Get *all* key events to display in NSTextField?


  • Subject: Re: Get *all* key events to display in NSTextField?
  • From: Dale Gillard <email@hidden>
  • Date: Fri, 5 Mar 2004 19:17:19 +1100

From: Allan Odgaard <email@hidden>
Date: Thu, 4 Mar 2004 14:20:41 +0100

On 4. Mar 2004, at 13:19, Dale Gillard wrote:

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?

Actually, I don't think you'll get all keys with that approach either.

I eventually had to implement sendEvent: in an application subclass to
get all of the events -- so when my text field became first responder,
it would tell the app to send events directly to me, and I would
translate them to a glyph representation.

Thanks for this suggestion. I hadn't thought of subclassing NSApp. This is probably a simpler approach than trying to turn a custom NSView into a NSTextField, so I'll give it a go.

Cheers.

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.


  • Prev by Date: Re: Icons
  • Next by Date: Re: access/retrieve >5lakh records from Oracle
  • Previous by thread: Re: Get *all* key events to display in NSTextField?
  • Next by thread: ATSUHighlightText permanently sets the refresh rect
  • Index(es):
    • Date
    • Thread