Version: 1.0

Posted: 2003-01-30

Build Requirements: N/A

Runtime Requirements: Carbon System 7

View Source Code:

Download Sample (“icon_cache_demo.zip”, 13.1K)
Download Sample (“icon_cache_demo.dmg”, 71.8K)



Description

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

Document Revision History

Date Notes
2003-01-30Demonstrates the use of an icon cache to limit the search for icon resource to one resource file.

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.