Re: Focus Ring and NSTextField
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