Default Input Field - force NSTextEditField to stay firstResponder
Default Input Field - force NSTextEditField to stay firstResponder
- Subject: Default Input Field - force NSTextEditField to stay firstResponder
- From: Max Horn <email@hidden>
- Date: Wed, 30 May 2001 15:19:52 +0200
Is there a way I can enforce that all typing done in my dialog is
going to the (single editable) NSTextFieldView in my NSWindow?
In particular, I have a (group)chat dialog. There is big view for the
talk going on, and one NSTextField where you type in your text. There
are also some other items, none of which can have the focus. In fact,
only the text field can have the focus, but it still can loose it,
e.g. when the user selects some text in the big text view, to copy
it...
Now, if that happens, and then the user types something, nothing
happens at all (not even the beep I'd expect).
But everyone I talked to so far expected the text to go straight to
the NSTextField...
Any clue how I could enforce that? I tried to hook into the
NSResponder chain, but with no success so far...
Thanx,
Max