[comp.sys.mac] Launch Finder Mac. Programming Secrets: Kastner

madhu@hubcap.UUCP (Raman Madhusudan) (11/03/88)

Greetings:
	 In "Mac. programming secrets" (by Kastner, somewhere around page 
142 ) he says that Apple was going to make some changes with _launch. Where
can i get more info. about this in a hurry (need info by 11/7/88 or i am dead
and all that). My problem follows for kind hearted souls who might want to
help:
	Need to call application B from application A. 
I can use _launch from LightSpeed Pascal and pass it the name B, problem is
need to get back to A when B is done. I am not allowed to touch B's code
etc. but A is completely under my control. Is the whole approach wrong?
Should i use _chain instead? What would you do ? Help!

	--thanks
		(if you are not posting your reply please send e-mail
to madhu@hubcap.clemson.edu (internet) )

****************************************************
*	madhu@hubcap.clemson.edu		   *
* 	Have you Gooshed a Spider Lately ?	   *
****************************************************

bob@eecs.nwu.edu (Bob Hablutzel) (11/03/88)

> 	Need to call application B from application A. 
> I can use _launch from LightSpeed Pascal and pass it the name B, problem is
> need to get back to A when B is done. I am not allowed to touch B's code
> etc. but A is completely under my control. Is the whole approach wrong?
> Should i use _chain instead? What would you do ? Help!

You are trying to implement something called "Sublaunching". Sublauncing
is generally frowned upon these days, what with MultiFinder and all that,
but if you really, really want to do it, check out Tech Note 126, which 
documents the means to do just what you want. There is also some stuff
to read in Tech Note 205.

Bob Hablutzel	BOB@NUACC.ACNS.NWU.EDU

ech@poseidon.ATT.COM (Edward C Horvath) (11/06/88)

From article <3425@hubcap.UUCP>, by madhu@hubcap.UUCP (Raman Madhusudan):
...
> I can use _launch from LightSpeed Pascal and pass it the name B, problem is
> need to get back to A when B is done...

You want to "sublaunch."  Get your hands on a copy of TechNote 126 (revised
8/1/88) for details.

Note that under UniFinder, sublaunch does what you want.  Under Multifinder,
you continue to run and MUST call WaitNextEvent several times (until you get
sent to the background.  Note also that, under multifinder, you aren't
guaranteed that the child is finished when you get returned to the foreground,
AND that launch RETURNS.

DO NOT USE CHAIN.  Although it is documented nowhere, I have it verbally from
Mac DTS that you should no longer use it.

=Ned Horvath=