realbasic-nug
[Top] [All Lists]

Re: COMMAND+DELETE for Menu CommandKey

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: COMMAND+DELETE for Menu CommandKey
From: Charles Yeomans <charles at declareSub dot com>
Date: Wed, 31 Aug 2005 12:14:59 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <4644B582-E8CE-4E71-AA50-D636A2C406AC at juun dot com> <3a8d28ba166a89a5292f45fbe6242400 at declareSub dot com> <2D101E97-98AD-4B88-8FDF-D019FD549BCA at juun dot com>

On Aug 31, 2005, at 12:03 PM, Chase wrote:


The most important detail is that declares don't work in 5.x for modifying the application menu.


what can i do then?

couldn't it be done via a plugin?

i haven't tinkered with building plugins in a while, but i don't think this would be too tricky would it?

The inability to tweak application menus via external functions is a consequence of the redesign of menus in Rb 5, so I don't think that a plugin will get it done either. But it is possible to replace the menus entirely. You can lay out the menus using Interface Builder and load the menus from a .nib file in your Rb application. I discuss the technique for doing so in my book on declares <http://www.declareSub.com/>. Of course you lose all of the Rb support for menu handlers, etc. and must implement it yourself. This would be a substantial chunk of work.


--------------
Charles Yeomans

_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>