Re: Hot to move focus to a button?
Re: Hot to move focus to a button?
- Subject: Re: Hot to move focus to a button?
- From: Joanna Carter <email@hidden>
- Date: Sun, 7 Mar 2010 09:53:01 +0000
Hi Kyle
> Buttons don't accept keyboard focus. See the documentation for
> -[NSView canBecomeKeyView] and the related conceptual documentation.
I realise this to be what the docs say but, if you use -makeFirstResponder: the focus ring is applied to the chosen button and pressing the spacebar calls the connected action, which is, surely, the desired end result of "setting focus".
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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