You can - in Interface Builder - create any menu item you want with whatever keyboard shortcut you want. How did you specify ⌘9 as a shortcut? Just add a new menu item to any of your menus, change it's title to "Help", and Control-drag from the new item to an object (a file) which you want to handle the help action and choose which of your pre-existing methods you want to use.

Ron


On 14/10/2008, at 2:21 AM, Benjamin Dobson wrote:

Thanks for the response. However, I have already deleted the help menu. Until this works, I have the shortcut as ⌘9 for testing purposes. This works fine. Unfortunately, as soon as I change it to ⌘?, pressing the keys makes nothing happen. Literally, nothing - it doesn't even beep, as it would if I pressed ⌘3, for example.


On 13 Oct 2008, at 08:42:48, Ron Fleckner wrote:


On 13/10/2008, at 12:38 AM, Benjamin Dobson wrote:

Hi,

In Leopard, pressing ⌘? automatically activates the Help menu. Unfortunately, this means the ⌘? shortcut cannot be assigned to anything else. In my application, the ⌘? shortcut needs to perform a different action to the pre-built one. (It is a full- screen application, help is written on a simple panel.)

How can I rewire the ⌘? shortcut to my showHelp: method? _______________________________________________

Very easy. Just do it in Interface Builder. Select the Help menu item, then in the connections inspector disconnect it from it's default connection and re-assign it, or just simply delete the menu item.

HTH,
Ron_______________________________________________

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to