Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
ScrollAndZoom
| Last Revision: | Version 1.0.1, 2005-08-10 Updated to produce a universal binary. No code changes were required. |
| Build Requirements: | Mac OS X 10.3 Xcode 1.5 |
| Runtime Requirements: | Mac OS X 10.3 |
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.
© 2005 Apple Computer, Inc. All Rights Reserved. (Last updated: 2005-08-10)