Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Is multifinder or finder running?? Message-ID: <5541@internal.Apple.COM> Date: 1 Dec 89 18:52:18 GMT Sender: usenet@Apple.COM Organization: Objects-R-Us, Apple Computer, Inc. Lines: 24 References:<17708@ea.ecn.purdue.edu> <5499@internal.Apple.COM> <21640@ut-emx.UUCP> In article <21640@ut-emx.UUCP> xdaa374@ut-emx.UUCP (Vance Strickland) writes: > I would like to chack for the presence for task swapping: specifically, I'd > like to avoid running when the user has the ability to switch from one This seems equivalent to the question "Does a sublaunch return to the caller?" (Under MultiFinder, if you sublaunch a program, your application does not quit.) The Tech Notes explain that this is a valid question, for which there is currently no explicit answer. (In the future there may be a way to detect this.) I think the best suggestion is to check for the presence of the _OSDispatch trap, and if it exists assume that task switching is present. Unfortunately, this isn't guaranteed to be true in the future; for example, a future system might provide the MultiFinder memory calls all the time. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1