Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: Need some MF help Keywords: MultiFinder Message-ID: <28846@apple.Apple.COM> Date: 12 Apr 89 18:06:33 GMT References: <1562@neoucom.UUCP> <28399@apple.Apple.COM> <3637@brunix.UUCP> <28638@apple.Apple.COM> <992@dinl.mmc.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 30 In article <992@dinl.mmc.UUCP> snow@dinl.uucp (john snow) writes: >I don't know if my problem qualifies as a good reason for knowing >if multifinder is running, but it sure annoys me. I am developing >a communications program which allows users to carry on conversations >over the appletalk network. The origional version was written for >the finder so the node had to lock itself out of the net anytime the >user opened a DA. The new version is written for multifinder so now >it can function in the background while the user does something else, >**if it's running under multifinder**. So what should I do with this >application? If you specify System 6.0 or later (preferably 6.0.2 or later), you can simply write it to use the MF WaitNextEvent call instead of GetNextEvent. Also, why lock the program out of the net when a DA is open? You still had control of events in your program when a DA was opened. If you removed this limitation to the program, you wouldn't have to worry about MF running or not. Just make sure your program can handle suspend and resume events, can run in the background (very easy -- just set the "can background" bit and be prepared for null events), and your program will work under both finder and MF. ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------