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.
icon cache demo
Last Revision: | Version 1.0, 2003-01-30 Demonstrates the use of an icon cache to limit the search for icon resource to one resource file. |
Build Requirements: | |
Runtime Requirements: | Carbon System 7 |
This sample demonstrates the use of an icon cache to limit the search for icon resource to one resource file. It does this by installing an icon getter function into the cache which calls Get1(Ind)Resource instead of the usual GetResource. The application is meant to display the first suite produced by an indexed resource call. There's nothing stopping you from calling Get1Resource or anything else which might produce a handle to a member of an icon suite. There's also some jiggery-pokery having to do with my distaste for purgeable handles. Requirements: System 7 Keywords: icon, cache, optimization, performance, search
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-30