Force Touch for Developers

There’s a whole new way to experience a trackpad. The Force Touch trackpad in the all new MacBook and updated MacBook Pro with Retina display has built-in force sensors for a new level of interactivity and control within your apps. Find out about the new Force Touch APIs in the OS X Yosemite 10.10.3 or later.

Force Touch APIs

Force click

Apps can have any button, control, or region on the screen respond to a press of stronger pressure. A Force click can provide a shortcut to additional functionality within the app.

Pressure sensitivity

Drawing and other creative apps can take advantage of the pressure-sensing capabilities of the trackpad to make lines thicker or give a brush a changing style.

Accelerators

Pressure sensitivity in the trackpad enables apps to give users greater control. For instance, fast-forward in media playback can speed up as pressure increases.

Drag and drop

Let users react to a Force click gesture while in the middle of performing a drag, for instance, to immediately open a new target for the drop.

Development Resources

Download the latest release of Xcode 6, which includes OS X 10.10.3 SDK, and use the development resources below to learn more about creating apps that support the Force Touch trackpad.

Reference Documentation

Get the details on how to build apps that support the Force Touch trackpad using the AppKit framework.

Xcode and OS X 10.10.3

Xcode 6.3 and OS X Yosemite 10.10.3 includes the APIs for building apps that support the Force Touch trackpad.