Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!purdue!mailrus!ncar!husc6!mit-eddie!mit-amt!phil From: phil@mit-amt (Phil Sohn) Newsgroups: comp.sys.mac.programmer Subject: Re: Multifinder problem Summary: How MF finds the quit menu item Message-ID: <3493@mit-amt> Date: 19 Jan 89 15:35:55 GMT References: <1662@lindy.Stanford.EDU> <2314@ilium.cs.swarthmore.edu> <1322@viscous.sco.COM> Reply-To: phil@media-lab.media.mit.edu (Phil Sohn) Organization: MIT Media Lab, Cambridge MA Lines: 25 In article <1322@viscous.sco.COM> jamesm@sco.COM (James M. Moore) writes: >In article <2314@ilium.cs.swarthmore.edu> jackiw@ilium.UUCP (Nick Jackiw) writes: >>When User shutsdown or restarts from the Finder, MultiFinder attempts to >>QUIT your opened app by looking in the FILE menu for a "QUIT" item. > >How does it tell which is which? I hope it doesn't do something >foolish like look for the strings "Quit" and "Open," as not all >software is written in English. (If it does do something this >braindead, could someone plese tell me how to modify this string from my >code?) Well, it does do something braindead like looks for Quit under the File menu. However, it is rather smart about the way it does it, looking first for a mst# resource that has the same format as a `STR ` resource. The resources are: 100 Name(s) of the menu containing the quit command 101 Name(s) of the menu item corresponding to the quit command 102 Name(s) of the menu containing the open document command 103 Name(s) of the menu item corresponding to the open document command For more info check out Tech Note 205 Multifinder Revisited. phil@ems.media.mit.edu