denbeste@bgsuvax.UUCP (William C. DenBesten) (03/10/90)
I am writing an init that ocassionally displays a modal window
that needs to be seen (and acted upon) by the user. Under Finder, I
patch an arcane-but-appropiate trap. When it is called, I call
NewWindow(), and handle my own little modal environment until I
DisposWindow(). This works well.
When running under Multifinder, there is a small problem. Sometimes
the arcane-but-appropiate trap gets called from an application that is
not in the frontmost layer. When I create my window, it appears at
the front of its layer, but is obscured by other layers that are
further forward.
I need a method of convincing my window to comw up in front of all the
other layers. Alternatively, I could swap layers momentarily or grab
the a5 for the front layer, but I don't know how to do either of
these. The Programmer's Guide to Multifinder refers to the Layer Manager
as being responsible for handling this sort of thing. Unfortunately,
it also says that the layer manager is only called by the Window
Manager and I am not able to find documentation on the layer manager.
Using the notification manager won't work because I have an animate
display, need user response and can't let the macintosh continue until
I am done.
Any clues, guidelines or pointers would be appreciated.
--
William C. DenBesten | denbeste@bgsu.edu
Dept of Computer Science | CSNET denbeste%andy.bgsu.edu@relay.cs.net
Bowling Green State University | UUCP ...!osu-cis!bgsuvax!denbeste
Bowling Green, OH 43403-0214 | BITNET denbesten@bgsuopie.bitnetmurat@farcomp.UUCP (Murat Konar) (03/11/90)
In article <5525@bgsuvax.UUCP> denbeste@bgsuvax.UUCP (William C. DenBesten) writes: >When running under Multifinder, there is a small problem. Sometimes >the arcane-but-appropiate trap gets called from an application that is >not in the frontmost layer. When I create my window, it appears at >the front of its layer, but is obscured by other layers that are >further forward. Ooh, how mysterious. I have some idea's but how 'bout letting me (and other potential helpers) in on what trap your talking about? The layer manager is not documented (by Apple anyway) but will be in System 7, I think. In the Autumn '89 ish of MacTech Quarterly, there is an article about MultiFinder that describes some of its ins and outs. -- ____________________________________________________________________ Have a day. :^| Murat N. Konar murat@farcomp.UUCP -or- farcomp!murat@apple.com
spencer@eecs.umich.edu (Spencer W. Thomas) (03/13/90)
You could use the notification manager... -- =Spencer (spencer@eecs.umich.edu)