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. TheCountResourcesfunction returns the total number of resources of a given type that are currently available in all resource forks open to your application, and theCount1Resourcesfunction returns the total number of resources of a given type in the current resource file.You can call the
GetIndResourcefunction repeatedly to generate handles to all resources of a given type in all resource forks open to your application. You can call theGet1IndResourcefunction repeatedly to generate handles to all resources of a given type in the current resource file.The
CountTypesfunction tells you the number of resource types in all resource forks open to your application. TheCount1Typesfunction tells you the number of resource types in the current resource file. You can call theGetIndTypeprocedure repeatedly to get all the resource types available in all resource forks open to your application. Similarly, you can call theGet1IndTypeprocedure repeatedly to get all the resource types available in the current resource file.
Subtopics
- CountResources
- Count1Resources
- GetIndResource
- Get1IndResource
- CountTypes
- Count1Types
- GetIndType
- Get1IndType