NSTextInput protocol problem
NSTextInput protocol problem
- Subject: NSTextInput protocol problem
- From: Glen Simmons <email@hidden>
- Date: Mon, 28 Aug 2006 18:24:02 -0500
My app has an NSView subclass that displays different kinds of
objects which have a text label. It has a feature that allows the
user to edit the label simply by starting to type while the object is
selected. When the view gets an -insertText: message, I get the
window's field editor, set it up and make it first responder. This
works fine for regular characters, but not so much for multi-
keystroke characters like the accented e (option-e, e). I've
implemented the NSTextInput protocol on my view, but can't quite
figure out how to "relay" the messages to the field editor. I tried
doing the field editor setup in -setMarkedText:selectedRange: and
then calling -setMarkedText:selectedRange: on the field editor. That
appears to work since the marked accent appears in the editor, but
the next character typed is not combined with it. I'm guessing that
the change of first responder breaks the connection between the
option-e and the next character typed. Any thoughts on how to do this?
Thanks,
Glen Simmons
_______________________________________________
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