Re: Up arrow in NSTextView
Re: Up arrow in NSTextView
- Subject: Re: Up arrow in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Tue, 29 Mar 2005 13:36:07 -0800
On Mar 29, 2005, at 1:30 PM, Oliver Cameron wrote: This is what I do, replace the unicode char number for the up key:
- (void)keyDown:(NSEvent *)theEvent { unichar unicodeChar; NSString *characters; characters = [theEvent characters]; unicodeChar = [characters characterAtIndex:0]; if (unicodeChar == 0x0009) { Do whatever happens on up key. } }
This is in a NSTextView subclass.
Have you tested the behavior of this solution with any of the more complex input methods, such as those for Japanese or Chinese?
Douglas Davidson
|
_______________________________________________
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