Introduction to Upgrading to the Mac OS X HIToolbox

One of the strengths of Mac OS X is its support of older Mac OS APIs, many of which were introduced before Mac OS 8, and some before System 7. This support made it easier to move older applications to Mac OS X. However, because many of these APIs were designed for a different system architecture, performance can suffer, and they often cannot take advantage of key Mac OS X features. Updating your application’s user interface code to use the windowing and event-handling models designed specifically for Mac OS X gives immediate benefits in performance, code maintainablity, and portabiity, and it enables you to adopt the latest Mac OS X technologies.

Who Should Read This Document

This document is for Carbon developers who have older applications that would benefit from using modern HIToolbox technologies. You should consider upgrading if your application uses any of the following older Apple technologies:

An updated application will use nib-based windows and menus, with HIView-based controls (both standard and custom). All event handling is done through Carbon events, and all drawing in views is done using Quartz.

HIViews and compositing mode are supported in Mac OS X v10.2 and later. Carbon events (including Carbon event–based control definitions) and nib files are supported in Mac OS X v10.0 and later.

Even if you do not want to adopt all these technologies in your application right away, this document can guide you towards incremental changes that will make it easier to adopt new features.

Organization of This Document

This document is organized into the following chapters:

See Also

In addition to this document, you may find the following documents useful: