Re: Using a keyboard to push a button
Re: Using a keyboard to push a button
- Subject: Re: Using a keyboard to push a button
- From: Seth Willits <email@hidden>
- Date: Thu, 6 May 2010 12:26:59 -0700
On May 6, 2010, at 6:11 AM, Travis Siegel wrote:
>>> In Interface Builder, select the button and then use the Attributes inspector to set its key equivalent. (Click the box to the right of “Key Equiv.:” and press the Enter key.)
>
> And for those of us who can't use interface builder, how would one do this programatically?
>
> And before you ask why ib can't be used, I'll shortcut the replies by saying I'm a voiceover user, and ib is *not* vo accessible for these kinds of operations. In fact, ib isn't usable via vo to build an interface from scratch at all, though it is (slowly) getting better in this regard, so any code samples are greatfully accepted.
That must be a challenge! You'd do:
[button setKeyEquivalent:@"\r"];
--
Seth Willits
_______________________________________________
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