Mac OS X, Apple's newest operating system for the Macintosh platform, is profoundly different from its earlier versions because of its similarity to the UNIX operating system. For developers writing software for OS X this means adjusting to two new environments to create applications and to access the enhanced features of the new OS, Cocoa and Carbon. Cocoa is an object-oriented API in which all future OS X programs will be written. Carbon is a transitional technology allowing compatibility of applications written for earlier versions of the Mac OS with Mac OS X.
Mac OS X Developer's Guide focuses equally on Cocoa and Carbon, guiding the reader through these technologies and showing how to write applications in both. It is the first book for Mac OS X developers written for those who are already working on applications, as well as new developers just getting started. It starts off describing the new OS and its development tools then focuses on specific programming issues, providing tips on making the transition from classic Mac OS code to Mac OS X.
- A guide for developers already writing applications as well as new developers just getting started
- Focuses equally on both Cocoa and Carbon environments
- Provides tips on transitioning from writing code for classic Mac OS to OS X
- References Apple online materials extensively, to keep developers up to speed on changes
Apple Macintosh OS Developers
Sets Mutable Collections Property Lists Preferences and Defaults Default Domains Preference Names Setting Preferences Using Preferences Creating Objects Summary 19. Making It Happen: Events, Responders, Delegates and Notification. Events Types of Events Event Formats Timers Responders Working with the First Responder Selectors Sending Actions Delegates Notification Using Delegates and Notifications Receiving a Notification in a Delegate Registering for Notifications Posting a Notification Delegates versus Notifications Summary 20. Visualization (Views and Windows). Looking at Views View Hierarchies View Geometry Resizing Views Drawing Events, Mouse Handling, and Scrolling Identifying Views Adding Views Removing Views Using Windows Window Delegate Methods Window Notifications Geometry Window Controllers Creating and Loading Windows Working with Images NSImage NSImageRep Implementing Toolbars Declare Toolbar Item Names Set Default Toolbar Items Set Allowed Toolbar Items Create the Toolbar Create Toolbar Items For Response to User Clicks Drawers Summary 21. Interface Design and Controls. The Role of Guidelines and Standards User Actions Push Buttons Round Buttons Rounded Bevel Buttons Square Buttons Radio Buttons and Check Boxes Steppers User Input Text Fields Text Views Image Input Color Well Choices Providing Information to the User Displaying Text Displaying Progress Organizing Information Small Control Variants Summary 22. Living in a Shared Environment. Archiving, Serialization, and Distribution Terminology Archiving Serializing Creating Objects from Serialized Data Distribution Copying Copying Synchronism Kinds of Synchronism Opportunities for Synchronism Locking Threading Tasks Connections Summary 23. Documents and Files. Document-based Architectures Implementing Documents and Views Document Header Constructor Working with the Window Controller Saving and Restoring Data Saving Documents Restoring Data Undo and Dirty Documents Create Basic Actions Register Undo Actions Clear the Undo Stack Dirtying Documents Summary 24. Managing Menus. Menus and Other Interface Elements Contextual Menus
Dock Menus Quit Show in Finder Keep in Dock
Windows Summary 25. Printing. Basic Printing Using the Displayed View Using a Special View Print Panels Print Info PDF and Clipboard Support Summary 26. Action! Games and Multimedia. Human Interface Device (HID) Manager Create a Mach Port Find All Devices on the Port Create an Interface to a Device Open the Device Communicate Close the Device Free the Mach Port Identifying Devices NSMovie and NSMovieView NSMovie NSMovieView Immersive Applications Summary 27. Writing and Using Services. How Services Work The Basic Service Structure Other Types of Services How It Happens Business Models for Services Setting Up a Service Property List Settings Writing the Code Summary 28. Scripting in Mac OS X. AppleScript Overview Classes and Commands Scripting Functionality and Interface Uses of Scripting Making Your Application Scriptable Building the Grammar Implementing the Grammars Classes Commands Summary 29. Writing Reusable Components. Frameworks Why Use a Framework How Frameworks Run Creating a Framework Versioning the Framework Palettes The Object Itself IBPalette IBInspector Summary Index.
- No. of pages:
- © Morgan Kaufmann 2002
- 5th October 2001
- Morgan Kaufmann
- eBook ISBN:
Jesse Feiler is Software Director of Philmont Software Mill. Co-author of Finding and Fixing Your Year 2000: A Guide for Small Businesses and Organizations with Barbara Butler, and the author of the upcoming FileMaker Pro and the World Wide Web, Jesse has also written Rhapsody Developer’s Guide, Cyberdog, and Real World Apple Guide. He has served as a consultant, author, and speaker for many prestigious businesses, including the Federal Reserve Bank of New York, Prodigy, Kodak, Young & Rubicam, and Apple Computer, Inc.
Philmont Software Mill, New York, U.S.A.