Retired Document
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.
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.
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-08-10