• 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: Focus Ring and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus Ring and NSTextField


  • Subject: Re: Focus Ring and NSTextField
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 25 Jan 2010 16:16:27 -0800


On Jan 25, 2010, at 4:11 PM, Richard Somers wrote:

I have a preference panel with a NSTextField. The text field automatically gets a focus ring when showing the panel. I only want a focus ring when the user clicks in the text field. How can I do that?

Wire the window's initialFirstResponder outlet to whatever view you want to have focus initially. (If you don't want any view to, you can wire it to the window itself.)


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Focus Ring and NSTextField (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: simple file browser
  • Next by Date: Re: runModalForWindow crash
  • Previous by thread: Focus Ring and NSTextField
  • Next by thread: Launch process as root from cocoa app
  • Index(es):
    • Date
    • Thread