• 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: Arrow keyEquivalent in InterfaceBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arrow keyEquivalent in InterfaceBuilder


  • Subject: Re: Arrow keyEquivalent in InterfaceBuilder
  • From: Edward Hillenbrand <email@hidden>
  • Date: Fri, 31 Dec 2004 16:49:31 -0700


On Dec 31, 2004, at 3:39 PM, Bill Cheeseman wrote:

on 2004-12-31 4:15 PM, Lorenzo at email@hidden wrote:

in InterfaceBuilder, open the menu object, then just double click on the
"Key-Equivalent" field in the "menu item" line (not in the inspector), then
when ready hit the arrow key on your keyboard. You will see the arrow symbol
in the "Key-Equivalent" field. Now, in the Inspector panel, you can even add
modifier keys like Comman, Option, or Control key.

<Sigh> I wasted so much time doing this in code. I suppose this is documented somewhere, and I just never noticed it?

Will the nib file work when you run the app under Mac OS X 10.2 Jaguar?

Yes, IIRC the nib works on Jaguar. The only problems I ever had were with single character key equivalents (no modifiers). The menu's would display fine under Jag, but pressing the key did nothing. I had to subclass and override keyDown:.


The only key equivalent that required code for both Jaguar and Panther was the space key. For that I had to fake the key equivalent in IB by adding few spaces to the menu item's title and then typing out "space". Also, it could not be set by using setKeyEquivalent: once again you have to override keyDown:.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Arrow keyEquivalent in InterfaceBuilder (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: ScreenSaverView with multiple displays
  • Next by Date: Accurate decimal numbers?
  • Previous by thread: Re: Arrow keyEquivalent in InterfaceBuilder
  • Next by thread: float & double scanner question
  • Index(es):
    • Date
    • Thread