NSTextView keydown alternative?
NSTextView keydown alternative?
- Subject: NSTextView keydown alternative?
- From: Nik Youdale <email@hidden>
- Date: Sat, 14 Jan 2006 22:58:23 +1100
Hi,
I am building a custom view that consists of a textview (mainly)
which holds first responder status, and allows text input by the
user. I have implemented the
"textView:shouldChangeTextInRange:replacementString:" delegate method
to detect when characters are pressed, and to also detect when keys
such as return and tab are pressed so that i can disable their action
and/or invoke other methods.
What I need is someway of detecting when other keys are pressed such
as delete and arrow keys. I have tried overriding keydown, but then i
can't type into the textview. I need someway of detecting these
keystrokes and to still allow typing and the
"textView:shouldChangeTextInRange:replacementString:" delegate method.
Any help would be much appreciated,
Thanks
- Nik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden