Typing in Dialog -> set a "default" text field
Typing in Dialog -> set a "default" text field
- Subject: Typing in Dialog -> set a "default" text field
- From: Max Horn <email@hidden>
- Date: Fri, 18 May 2001 08:30:34 +0200
Hi there,
I have a "dialog" window here, with a non-editable NSTextView,
another non-editable NSTextField, some buttons, and finally a single
editable NSTextField.
Now, it is possible for the user to click somewhere, which
"deselects" (i.e. unfocuses) the NSTextField. Also, pressing Tab
makes it loose focus, too.
Now, when the user types something, it appears nowhere! In this
particula case it is very annoying; everybody tring it so far expects
the typed chars to appear in the NSTextField.
My question: is there anything I can do to achieve this behaviour?
Should I add code to the NSWindow that checks for key presses, and
then redirects them to the NSTextField? Or what else could/should I
do?
Thanx!
Max