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.
SkyCreator
Last Revision: | Version 1.1, 2006-04-12 Updated compiler options to generate 1.4 compatible bytecode. |
Build Requirements: | Xcode 2.0 or greater |
Runtime Requirements: | 1.4.2 or later |
This is a very simple demo that creates a random image of a starry sky using several star images of different sizes that are placed randomly on the screen. The user can drag the stars to re-arrange them. This code was written to illustrate the functionallity of QuartzDebug. There is a slow and a fast version. The slow version is commented out by default. The slow version repaints the whole window every time a star is moved, and the fast version only re-paints the dirty region. You can use
QuartzDebug to see the different behavior between the two versions.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-04-12