Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.1, 2005-03-23
Updated to be compatible with systems earlier than Mac OS v10.3 by using weak linking for Pasteboard API symbols.
Mac OS X 10.2 and Later
CarbonSketch is a HIToolbox-based Carbon drawing application which instead of using QuickDraw APIs, does all of its rendering using Core Graphics. This Sample Demonstrates: 1) The usage of an overlay window for mouse-tracking feedback. 2) The usage of a 1x1-CGBitmapContext for hit-testing. 3) Printing 4) Saving as a PDF File. 5) Copy and Paste of pdf data using the new Pasteboard API's. 6) Weak linking and verification that the Pasteboard API's exist before using them.