Last Revision:
Version 1.1, 2010-08-31
Removed extraneous comments and log statements. Updated implementation of initializer methods.
(Full Revision History)
Build Requirements:
Xcode 3.2 or later, Mac OS X v10.6 or later.
Runtime Requirements:
Mac OS X v10.6 or later.

This example shows how to use pasteboard and services APIs for Mac OS X v10.6 and later.

The example is a document-based application which serves as a "typing assistant". Each document contains a collection of text snippets which you can insert in turn into another application using a service. When creating a document, you can import text snippets also using a service.

The application uses the pasteboard to support copy and paste and drag and drop. Drag and drop is illustrated using a subclass of NSArrayController in conjunction with Cocoa bindings.