[comp.sys.mac.programmer] problem

tkramp@aragon.stgt.sub.org (Thorsten Kramp) (05/02/91)

Hi folks,

I'm currently a writing a new tool for OS 7.0 which stays
most of the time in the background for the sake of easy
and fast access but it's NOT a background-only application.

I ran into a problem when I tried to figure out how to kick
myself in the background (oops, the application, for sure)
according to the 'Hide <currentApp>' menu command of the
Finder. First of all I thought of emulating the events to
give the Finder the impression the user had moved my app in
the background but this seems to be lots of work and trouble.
Second I checked the AppleEvent Registry to send the Finder
an AppleEvent to perform this task but my version of the
registry didn't reveal an event according my needs. Is there
any 'clean' way to code this stuff?!

Any hints, ideas, comments or just a cool discussion are
welcome. Tnx 1.0e6 in advance and best regards

Thorsten
tkramp@aragon.stgt.sub.org