|
Leopard Technical Q&As: Carbon
Events & Other Input
Events are high-level messages sent to applications by the operating system. For example, when the user clicks the mouse, types a character, or chooses a menu command, Mac OS X notifies the appropriate application by means of an event; when a window needs to be redrawn, moved, or resized, the application receives an event telling it to perform the operation; when a program becomes the active (foreground) application or moves to the background in favor of another, the program receives an event informing it of the fact. When an application receives an event, the application's task is to respond appropriately. |