Version: 1.0.1

Posted: 2005-08-10

Build Requirements: Mac OS X 10.3 Xcode 1.5

Runtime Requirements: Mac OS X 10.3

View Source Code:

Download Sample (“ScrollAndZoom.zip”, 45.5K)
Download Sample (“ScrollAndZoom.dmg”, 101.0K)



Description

This sample code shows how to take advantage of the Context Transformation Matrix (CTM) with the APIs CGContextScaleCTM and CGContextTranslateCTM to achieve easy zooming and scrolling in a custom HIView.

This sample code has been updated to include a project that produces a universal binary. No code changes were required for it to run correctly on the Developer Transition Systems.

Document Revision History

Date Notes
2005-08-10Updated to produce a universal binary. No code changes were required.
2004-10-27An illustration of the use of the Context Transformation Matrix (CTM) for zooming and scrolling a HIView.

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.