Important: The information in this document is obsolete and should not be used for new development.
Counting and Listing Resource Types
The Resource Manager provides several routines that count or list resource types. TheCountResources
function returns the total number of resources of a given type that are currently available in all resource forks open to your application, and theCount1Resources
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 theGet1IndResource
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. TheCount1Types
function tells you the number of resource types in the current resource file. You can call theGetIndType
procedure repeatedly to get all the resource types available in all resource forks open to your application. Similarly, you can call theGet1IndType
procedure repeatedly to get all the resource types available in the current resource file.
Subtopics
- CountResources
- Count1Resources
- GetIndResource
- Get1IndResource
- CountTypes
- Count1Types
- GetIndType
- Get1IndType