Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!portal!sv!daven From: daven@svc.portal.com Newsgroups: comp.sys.mac.programmer Subject: Re: Sublaunching ??? Message-ID: <1990Dec12.201718.27307@svc.portal.com> Date: 12 Dec 90 20:17:18 GMT References: <1990Dec11.004705.20759@dhw68k.cts.com> Organization: Software Ventures Lines: 25 In article <1990Dec11.004705.20759@dhw68k.cts.com> finnegan@dhw68k.cts.com (Greg Finnegan) writes: > >We just added sublaunching to our application and everything works >fine so far. However, if you sublaunch to another application (with >a document that you want to open) and that application is already >running under MultiFinder, the application just comes to the front. >Apparently, MultiFinder does some low level mucking to allow >sublaunching to open apps with a document. > >Anybody have any ideas how I might do the same? What MultiFinder does at the low level is "fake" menu hits on "Open..." in the file menu. I assume it also then fakes out the application's call to SFGetFile to just return the document that needs to be opened. Apple requires applications with unusual "Open" menu items supply a resource in the application of type MSTR. These tell MultiFinder what the menu items actual text is. -- ------------------------------------------------------------------------------- Dave Newman | daven@svc.portal.com | AppleLink: D0025 Sofware Ventures Corp. | AOL: MicroPhone | CIS: 76004,2161 Berkeley, CA 94705 | WELL: tinman@well.sf.ca.us | (415) 644-3232