Detecting keyDown in a NSTextField?
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.