Mac OS X ProgrammingMac OS X Programming Techniques provides the reader with definitions, details, and explanations of the various components that make up this new operating system. Understanding the operating system helps the reader use the programming tools and the Carbon application programming interface (API)--both of which are covered extensively in this book. Much of the original programming API (now referred to as the Classic API) is still usable. But it's been revamped and renamed--it's now the Carbon API. This modified set of functions includes plenty of new routines that make a Mac programmer's work easier and more powerful--provided that the programmer knows how to make use of the new code. The reader learns about the all new Carbon Event Manager, as well as the changes and enhancements that have been made to existing managers (such as the Window Manager and the Menu Manager). Readers new to Mac programming will appreciate the journey that takes them from the start of a new Macintosh project to the final building of a standalone Mac OS X application. Readers experienced in programming the Mac will find this same material of great interest--and these readers will benefit from the lengthy section on porting existing Mac OS 8 and 9 applications to Mac OS X. Finally, readers will appreciate the Carbon API reference section that provides information and example code for dozens of the most commonly used Carbon routines. All the code developed in the book will be available on www.newriders.com. |
Common terms and phrases
alert Apple application argument Beep World Carbon API Carbon Event Manager CFSTR("main chapter checkbox choose command CommandEventHandler control ID create CreateNibReference CreateWindowFromNib creator code dansydow define display DisposeNibReference drawing enable environment event handler routine event kind event type EventHandlerCallRef handlerRef EventHandlerUPP EventRef event EventTargetRef EventTypeSpec File menu folder function GetEventParameter graphics handle handlerUPP header file Hello World Hello World program HICommand IBNibRef icon Icon Composer Info InstallEventHandler Interface Builder Mac OS X Macintosh Toolbox main.nib file menu bar menu item nib file nib resource nibRef noErr NULL Objective-C Open dialog box palette palette window parameter pascal OSStatus pattern pixels pointer Project Builder QuickDraw QuickTime radio button group rectangle require_noerr ResEdit resource file result RunApplicationEventLoop SetWindowProperty sizeof snippet source code specify string submenu SuperBeepIcon target text input field UNIX update UpdateWindow variable void userData window resource WindowRef window