• 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
Further Text Field oddities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Further Text Field oddities


  • Subject: Further Text Field oddities
  • From: Scott Thompson <email@hidden>
  • Date: Fri, 14 May 2004 13:42:25 -0500

For those who haven't followed my saga in earlier messages... I am working with a window that has two instances of NSTextView, for holding long stretches of text, and a number of NSTextFields for handling shorter stints of text.

I get some pretty odd behavior out of this setup. At first I was having trouble getting the NSTextViews to allow me to tab to the NSTextFields. I soon discovered the call "setFieldEditor" which restored the expected behavior there.

Now I have two more issues with the NSTextViews:

1. The NSTextViews do not display focus rings when they have the key focus.
2. The NSTextViews maintain a selection when they are inactive.

With regards to the focus ring. I figure this isn't the end of the world, but it is a bit odd because the NSTextFields do display focus rings.

As for the second problem I'd like for the text views to behave like the text fields so that they select all the text they contain when the user tabs into them, but I can't seem to find a way to implement that behavior short of subclassing NSTextView.

Have you encountered similar problems and have a solution?

Scott
_______________________________________________
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.


  • Prev by Date: Re: How to make NSImageView respond to keyboard events?
  • Next by Date: Window Styles
  • Previous by thread: Re: invalid operands to binary?
  • Next by thread: Window Styles
  • Index(es):
    • Date
    • Thread