Resorting normal field editor behaviour
Resorting normal field editor behaviour
- Subject: Resorting normal field editor behaviour
- From: K.Darcy Otto <email@hidden>
- Date: Wed, 2 Apr 2008 21:54:02 -0700
I need to intercept changes in my NSTableView's field editor, and I am
able to do this successfully implementing controlTextDidChange: in my
controller. I do this by having my controller create a field editor
(fieldEd, an NSTextView) and setting the delegate of that field editor
to my controller. Then, I use windowWillReturnFieldEditor: to return
fieldEd, so that when the NSTableView wants to do some editing, it
gets pointed to the right object. So far, so good.
The problem is that I lose some normal field-editor behaviour. In
particular, the field editor does not give up control when I press
<enter>, <tab> or <backtab>, but instead enters these characters
directly into the field (there may be some other issues as well;
arrows work as expected). How do I restore normal behaviour, and (for
the interest's sake) why has normal behaviour disappeared? Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden