CouldAlert
CouldAlert
Make an alert and related resources un purgeable short alertID ; resource ID of an alert (type 'ALRT')
CouldAlert is needed when you expect that a disk containing alert resources may be removed. It reads 'ALRT', 'DITL', 'WDEF', 'PICT', 'CNTL', 'actb', 'ictb'
and related resources into memory if they are not already there and tags them
as un purgeable.
CouldAlert is not supported under System 7. You can call it but no operation will be performed.
alertID is the resource ID of the 'ALRT' resource which you want held in
memory.
Notes: CouldAlert is a quick way to insure that an alert and all its related resources will not be purged. The alternative is a series of a (possibly)
large number of SetResAttrs calls, walking around an extended tree of resources.
Exception: If the alert uses a font other than the system font (see
SetDAFont), that font might get purged anyway. It also does not load or make unpurgeable the 'FONT' or 'FOND' resources of the color item list. You