Version: 1.1

Posted: 2009-05-11

Build Requirements: Xcode 3.0 and Mac OS X version 10.5 or later

Runtime Requirements: Mac OS X version 10.5 or later

View Source Code:

Download Sample Code (“QuickLookSketch.zip”, 85.8K)



Description

This example shows how to write a Quick Look preview generator for Sketch documents. Quick Look is a system-wide preview service in Mac OS X. A Quick Look generator provides document-specific thumbnails and rich previews for its associated document type.

Document Revision History

Date Notes
2009-05-11Updated code to use saveGraphicsState and restoreGraphicsState instead of currentContext and setCurrentContext to avoid a crash.
2006-08-01This example shows how to write a Quick Look preview generator for Sketch documents.