Last Revision: | Version 1.0, 2009-05-27 Shows how to use pasteboard and services APIs. |
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.
Last updated: 2009-05-27