• 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
highlighting text in -becomeFirstResponder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

highlighting text in -becomeFirstResponder?


  • Subject: highlighting text in -becomeFirstResponder?
  • From: "Colsher, William" <email@hidden>
  • Date: Mon, 17 May 2004 11:52:40 -0400

In our application we traditionally select the contents of a text entry
field (an NSTextView in it's current incarnation) when the user tabs into
it. To accomplish this I'm doing a [self selectAll:NULL] in my NSTextView
subclass.



That works perfectly, but the problem is that if the user makes the
NSTextView active by, say, clicking on it, the text highlights and then
unhighlights immediately.



This suggests that I should be doing the selectAll somewhere other than
becomeFirstResponder.



So the question is where? Or, if that is the right spot, how can I
distinguish between arriving from a tab, and a click?



Thanks



Bill Colsher



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
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: Detect ALT key pressed during dragging
  • Next by Date: WebView & Cache
  • Previous by thread: Re: Controlling where a tooltip will be displayed
  • Next by thread: WebView & Cache
  • Index(es):
    • Date
    • Thread