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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com