Info-Mac Archive Downloads: dev/src/ SourceCode

Back to dev/src/ SourceCode

SafeAlert.c - C source code for automatic background/foreground (safe-alert-10-c.hqx)

Download safe-alert-10-c.hqx (133,722 KB)


From: Todd_Clements@hmc.edu (Todd Clements)
Subject: SafeAlert.c - C source code for automatic background/foreground

SafeAlert is a set of routines that is meant to reduce the worry involved
in attempting to display modal alerts while your application is in the
background. Instead of using functions such as StopAlert, NoteAlert, or
CautionAlert, you can use calls to SafeAlert.

SafeAlert automatically determines whether your application is in the
foreground, and based on this (and some other preferences which are all
programmer-settable) information can do one or all of the following:
o Display a Notification Manager notice if you are not the foreground
application
o Display a blinking icon of your application in the application menu
o Display a diamond next to your application
o Display a modal or movable modal alert
o Display an alert from dynamic or resource-based information
o Automatically remove the alert after a specified period of time

Author: Todd Clements (todd@kagi.com or Todd_Clements@hmc.edu)

Release: 1.0, December 27, 1996