Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!ukma!rutgers!apple!well!brecher From: brecher@well.UUCP (Steve Brecher) Newsgroups: comp.sys.mac.programmer Subject: Re: Command Key D.A.s (a message box for the finder?) Message-ID: <10333@well.UUCP> Date: 13 Jan 89 02:55:53 GMT References: <730078@hpcilzb.HP.COM> <6195@hoptoad.uucp> <13370@cup.portal.com> <6229@hoptoad.uucp> <27486@ucbvax.BERKELEY.EDU> Reply-To: brecher@well.UUCP (Steve Brecher) Organization: Software Supply, Sunnyvale, CA Lines: 26 In article <27486@ucbvax.BERKELEY.EDU>, oster@dewey.soe.berkeley.edu (David Phillip Oster) writes: > In article <6229@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: > >However, you can put a menu shortcut key into a DA. Just put the magic > >menu manager metacharacters into the DA resource name. Then when the > >application does an AddResMenu, the shortcut will appear normally in > >the apple menu. > > It is not quite that simple. You'll get the command key in the menu, > because the D.A. has the metacharacters in its name all right. As I noted in another posting AddResMenu does not interpret metacharacters, so there will be no command equivalent in the menu; there will just be metacharacters at the end of the name, i.e., this scheme doesn't work. > The reason [Suitcase] works is, it is already overrriding most of the > resource manager, so it just checks for itself, as long as it is checking > for anything. Suitcase's and Suitcase II's AddResMenu patch inserts the key equivalent for the Suitcase [II] DA into the apple menu structure. Choice of the DA via the command key is handled entirely by the Menu Manager in normal fashion. -- brecher@well.UUCP (Steve Brecher)