Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: More Macintosh Toolbox /
Chapter 1 - Resource Manager / Resource Manager Reference
Resource Manager Routines


Counting and Listing Resource Types

The Resource Manager provides several routines that count or list resource types. The CountResources function returns the total number of resources of a given type that are currently available in all resource forks open to your application, and the Count1Resources function returns the total number of resources of a given type in the current resource file.

You can call the GetIndResource function repeatedly to generate handles to all resources of a given type in all resource forks open to your application. You can call the Get1IndResource function repeatedly to generate handles to all resources of a given type in the current resource file.

The CountTypes function tells you the number of resource types in all resource forks open to your application. The Count1Types function tells you the number of resource types in the current resource file. You can call the GetIndType procedure repeatedly to get all the resource types available in all resource forks open to your application. Similarly, you can call the Get1IndType procedure repeatedly to get all the resource types available in the current resource file.


Subtopics
CountResources
Count1Resources
GetIndResource
Get1IndResource
CountTypes
Count1Types
GetIndType
Get1IndType

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996