• 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: Using a keyboard to push a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using a keyboard to push a button (From: Benjamin Navarro <email@hidden>)
 >Re: Using a keyboard to push a button (From: Jens Alfke <email@hidden>)
 >Re: Using a keyboard to push a button (From: Seth Willits <email@hidden>)

  • Prev by Date: NSListViewTemplate invert
  • Next by Date: Re: iPhone resource cache - memory question
  • Previous by thread: Re: Using a keyboard to push a button
  • Next by thread: Change background image in select behavior in the NSToolbarItem
  • Index(es):
    • Date
    • Thread