On 16-Aug-06, at 6:08 PM, Arnaud Nicolet wrote:

For the Quit and prefs menu items, you can access them directly, can't you?

FileQuit.KeyboardShortcut=""

That's the problem, this doesn't actually do anything for QuitMenuItem.

For the hide menu item, I don't even know if MacOS X allows you to change it.

It does, but RB rebuilds menus behind your back so if you use a declare to change'm, the RB framework changes them back when you actually try to use them.

An odd thing I did notice, is if you create a couple stub menus that use Cmd-Q and Cmd-H then those shortcuts won't be available to the real Quit/Hide menus. You can toggle the visibility of those stubs to toggle the shortcuts on the real menus, but if you hit Cmd-H while the stubs are visible the real Hide menu looses its key combo for good. This doesn't happen for Quit as long as you have a QuitMenuItem defined however.

The more I look at this the more I think the only way it can work is if RS does two things:

1. Allow KeyboardShortcut to be changed for QuitMenuItem and PrefsMenuItem (this may be a legitimate bug already). 2. Add HideMenuItem and HideOthersMenuItem subclasses - maybe even ShowAllMenuItem for completeness.

I know what I'm trying to do goes against the almighty HIG but there are good reasons for needing this functionality - games and kiosks, come immediately to mind.

I'll write up a report later tonight...

Frank.
<http://developer.chaoticbox.com/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to