Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

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”, 113.2K)
Download Sample (“CarbonSketch.dmg”, 169.6K)



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-23It now weak links against API's that aren't currently available on pre-10.3 systems (specificly the Pasteboard API's) and check for NULL before using them.
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.