Macintosh (Continues….)


“Graphics include text as well as pictures. To draw text, QuickDraw calls the Font Manager, which does the background work necessary to make a variety of character fonts available in various sizes and styles. Unless your application includes a font menu, you need to know only a minimal amount about the Font Manager.” —Inside Macintosh, Volume I, page I-11b4b
    
“An application decides what to do from moment to moment by examining input from the user in the form of mouse and keyboard actions. It learns of such actions by repeatedly calling the Toolbox Event Manager (which in turn calls another, lower-level Event Manager in the Operating System). The Toolbox Event Manager also reports occurences within the application that may require a response, such as when a window that was overlapped becomes exposed and needs to be redrawn.” —Inside Macintosh, Volume I, page I-11
    
“All information presented by a standard Macintosh application appears in windows. [NOTE: information also can appear in the menu bar and can be audio.] To create windows, activate them, move them, resize them, or close them, you’ll call the Window Manager It keeps track of overlapping windows, so you can manipulate windows without concern for how they overlap. For example, the Window Manager tells the Toolbox Event Manager when to inform your application that a window has to be redrawn. Also, when the user presses the mouse button, you call the Window Manager to learn which part of which window it was pressed in, or whether it was pressed in the menu bar or a desk accessory.” —Inside Macintosh, Volume I, page I-11

“Any window may contain controls, such as buttons, check boxes, and scroll bars. You can create and manipulate controls with the Control Manager. When you learn from the Window Manager that the user pressed the mouse button inside a window containing controls, you call the Control Manager to find out which control it was pressed in, if any.” —Inside Macintosh, Volume I, page I-11
    
“A common place for the user to press the mouse button is, of course, in the menu bar. You set up menus in the menu bar by calling the Menu Manager. When the user gives a commadn, either from a menu with the mouse or from the leyboard with the Command key, you call the Menu Manager to find out which command was given.” —Inside Macintosh, Volume I, page I-12
   
“To accept text typed by the user and allow the standard editing capabilities, including cutting and pasting text within a document via the Clipboard, your application should call TextEdit. TextEdit also handles basic formatting sych as word wraparound and justification. You can use it just to display text if you like.” —Inside Macintosh, Volume I, page I-12
    
“When an application needs more information from the user about a command, it presents a dialog box. In case of errors or potentially dangerous situations, it alerts the user with a box containing a message or with sound from the Macintosh’s speakers (or both). To create and present dialogs and alerts, and find out the user’s responses to them, you call the Dialog Manager.” —Inside Macintosh, Volume I, page I-12 
   
“Every Macintosh application should support the use of desk accessories. The user opens desk accessories through the Apple menu, which you set up by calling the Menu Manager. When you learn that the user has pressed the mouse button in a desk accessory, you pass that information on to the accessory by calling the Desk Manager. The Desk Manager also includes routines that you must call to ensure that desk accessories work properly.” —Inside Macintosh, Volume I, page I-11

“You can use TextEdit to implement the standard text editing capability of cutting and pasting via the Clipboard in your application. To allow the use of the Clipboard for cutting and pasting text or graphics between your application and another application or a desk accessory, you need to call the Scrap Manager.” —Inside Macintosh, Volume I, page I-12