[comp.sys.mac.programmer] Trapping MouseDown events on the desktop

jfk@eniac.seas.upenn.edu (James F. Kennedy) (06/03/91)

Hello fellow Mac programmers:

  Before System 7, mouse down events in the desktop area were passed along
to the application and the application could check for it (via FindWindow)
and do something appropriate.  In System 7 however, this event is not
passed to the application - instead, the operating system automagically
preforms a context switch to the finder (a very annoying "feature" which
would be more tolerable if it could be turned off in a "preference").
Since the context switch doesn't occur while a modal dialog box is being
displayed, I can only imagine that there is someway to trap those events
or at least know of them.  I've scrutinized IM VI and can't seem to find
anything about a hook in the event manager or anywhere else.  Can anybody
help me?  I'd really like to be able to track this event or at least, be
able to keep track of it.

				Thanks,
					James

--
James F. Kennedy			jfk@eniac.seas.upenn.edu
University of Pennsylvania		ST0809@applelink.apple.com