Application-Generated Events
Application-Generated Events
Event type app3Evt is available to any application. It won't be read by
GetNextEvent unless you place one in the event queue via PostEvent.
This capability lets you generalize some processing by handling it from your
main event loop. For instance, you might post an "error event" from a
low-level routine in order to let the main loop clean it up. Or in a modem
program, you could post a "ring event" or a "hang up" event. You could post and
process a "menu change" event when a menu item is added or disabled, and so
forth.