home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!concert!sas!mozart.unx.sas.com!studly.mac.sas.com!Michael_Hecht
- From: Michael Hecht <Michael_Hecht@mac.sas.com>
- Subject: Re: The Forgetful Finder
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BxIM0r.IHC@unx.sas.com>
- X-Useragent: Nuntius v1.1.1d12
- Date: Tue, 10 Nov 1992 19:26:50 GMT
- X-Xxdate: Tue, 10 Nov 92 19:15:28 GMT
- X-Xxmessage-Id: <A72574801E03050A@studly.mac.sas.com>
- References: <1992Nov5.174108.20232@hobbes.kzoo.edu> <Nov.9.12.14.27.1992.24843@math.rutgers.edu> <keith-091192124523@kip-16.taligent.com>
- Nntp-Posting-Host: studly.mac.sas.com
- Organization: SAS Institute Inc.
- Lines: 54
-
- In article <1992Nov10.174217.23367@netcom.com> Bill Hofmann,
- wdh@netcom.com writes:
- >This must be one of those "only a few hundred" open bugs in 7.1. It's
- >a common experience, and there seems to be no particular cause for it.
- >I reported it into the great black hole using the bug reporter, I hope
- >others will as well.
-
- I've *only* seen this happen when the Mac forgets my Monitors
- configuration (like when I install a new System). And then, *only* the
- windows that normally reside on my second monitor get resized and
- repositioned. I figured the Finder was being smart by not putting those
- windows where there was no desktop. Perhaps this behavior is being
- inadvertently triggered on your Macs somehow.
-
- I also discovered that if I merely close these mis-positioned windows, or
- ignore them entirely, then when I correct my Monitors configuration, they
- go back where they belong the next time I restart.
-
- >Another disturbing bug is that when I boot up,
- >multiple finder windows have their controls showing. Hmmm. Happens
- >every time, consistently.
-
- This sounds very similar to one of my pet peeves. It seems that there's a
- bug in the Mac OS in that if an application creates a new window when
- it's not the foreground app, the window appears enabled. Its title bar
- has the vertical lines in it, etc. Nuntius is a prime example. This
- becomes a problem when I use the title bar as a visual cue to tell me
- what the front-most application is. I may end up typing text or command
- keys only to discover that the text isn't going where I intended, or the
- command keys are doing things I don't want! Is this the behavior you're
- describing?
-
- I thought of a very kludgy way to get around the bug. It involves making
- an invisible "spare" window, which is normally last in the window list.
- When an application is suspended, it brings this inviso window to the
- front. Notice that this also generates a deactivate event for the
- frontmost window, so the app won't have to simulate that as well. When
- the app opens any new windows, it now opens them *behind* the inviso
- window, causing them to appear deactivated. When the app is resumed, it
- moves the inviso window to the rear, causing the frontmost window to
- receive an activate event.
-
- You could maintain a static WindowPtr variable named "behindWindow" that
- points to the inviso window when you're in the background, and contains (
- WindowPtr )-1 when you're in the foreground. Then you just need to pass
- this variable as the "behind" value to the NewWindow calls.
-
- Of course, fixing it in the Window Manager is the better solution, Apple!
-
- --Michael
-
- =======================================================================
- Michael P. Hecht | Internet: Michael_Hecht@mac.sas.com
- SAS Institute Inc.; Cary, NC USA | AppleLink: SAS.HECHT
-