• 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
Detecting keyDown in a NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting keyDown in a NSTextField?


  • Subject: Detecting keyDown in a NSTextField?
  • From: "Jean-Olivier Lanctôt-D." <email@hidden>
  • Date: Tue, 7 Oct 2003 21:33:08 -0400

Hi List!

I have an NSTextField, and I want to be notified whenever a key gets pushed.

Normally, I'd go like that in my brain.

NSTextField is a NSView so it gets keyDown:

so I subclass keydown and NSLog something. but it never gets NSLogged.

I override acceptsFirstResponder to return YES, it doesnt work...

It's prolly because of the cell inside the view? But NSCell has no keyDown method...

So what do I do??

I'm a bit of a newbie when it comes to responder stuff... so please help me ;)

--Jean-Olivier
_______________________________________________
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: Detecting keyDown in a NSTextField?
      • From: Henry McGilton <email@hidden>
  • Prev by Date: fontWithName:matrix: (REPOST)
  • Next by Date: Re: Detecting keyDown in a NSTextField?
  • Previous by thread: fontWithName:matrix: (REPOST)
  • Next by thread: Re: Detecting keyDown in a NSTextField?
  • Index(es):
    • Date
    • Thread