[comp.sys.mac.programmer] CanBackground behaviour under MultiFinder

nick@lfcs.ed.ac.uk (Nick Rothwell) (04/20/89)

I've recently been making extensions to Paul Dubois' TransSkel to give it
some MultiFinder awareness (ho ho ho, great fun, let me tell you...). Anyway,
I've noticed one or two interesting things:

(i)	If I set the "CanBackground" flag, then when the application
	launches, its windows appear behind everybody else's; then,
	they come to the front and get update events. This happens
	in other LSC projects, and also in my copy of Kermit, which
	can run in the background. Is there a reason for this?
(ii)	Suspend/Resume events seem to get posted to an active
	application, even when I click onto a different one of its windows;
	something along the lines of "Deactivate/Suspend/Resume/Activate".
	has anybody else noticed this, or is it my problem?
(iii)	If I have my application MultiFinder-aware and accepting Suspend
	and Resume, but *not* accepting background tasks (in order to work
	around problem (i)), then a few seem to creep in:
	"Suspend" (and I go use another application, and then switch back)
	"/Null/Null/Null/Resume".

None of these are serious (except possibly (i), which is rather irritating);
it's also possible that I'm partially to blame. Has anybody else noticed/
solved/accepted these quirks?

		Nick.
--
Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.
		nick@lfcs.ed.ac.uk    <Atlantic Ocean>!mcvax!ukc!lfcs!nick
~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
...while the builders of the cages sleep with bullets, bars and stone,
they do not see your road to freedom that you build with flesh and bone.