Re: NSTextView && keyboard
Re: NSTextView && keyboard
- Subject: Re: NSTextView && keyboard
- From: Hamish Allan <email@hidden>
- Date: Sun, 9 Feb 2003 13:18:34 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Nico,
In my app, I've got a textview which should always keep the keyboard
focus,
regardless of the user's click out of its area.
You should be able to write an NSFormatter which never validates the
contents of the textfield, so focus will never be lost.
I mean, I don't want the user to have to click in the textview each
time he
wants to type text, I want him to be able to type text whenever he
wants.
I've got other textviews but they are not editable and when the user
clicks
on them, or even if he changes de main window, the keyboard focus
isn't in
my main textview anymore.
It sounds like your other textviews are selectable (another attribute
in addition to editable and enabled). If nothing else in the window is
selectable, your text field will not lose focus.
HTH,
Hamish
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+RlUu6gc2d//pELYRAvp4AJ9SI8D0JvFL902nNlXePnRczCntcgCgsMp+
OpeG94IBbuGN8lnUi+BfUwo=
=bFm9
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.