• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView && keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTextView && keyboard
      • From: Nico <email@hidden>
  • Prev by Date: Re: All Keys
  • Next by Date: Re: Weird problem with array declaration in action
  • Previous by thread: NSTextView && keyboard
  • Next by thread: Re: NSTextView && keyboard
  • Index(es):
    • Date
    • Thread