Version: 1.1

Posted: 2005-03-23

Build Requirements: Xcode

Runtime Requirements: Mac OS X 10.2 and Later

View Source Code:

Download Sample (“CarbonSketch.zip”, 110.5K)
Download Sample (“CarbonSketch.dmg”, 114.0K)



Description

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.

Document Revision History

Date Notes
2005-03-23Updated to be compatible with systems earlier than Mac OS v10.3 by using weak linking for Pasteboard API symbols.
2004-08-02Core Graphics only example of a Sketch application implemented with HIToolbox. Shows 1x1-CGBitmapContext for hit-testing, printing.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.