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


GetIndType

You can call the GetIndType procedure repeatedly to get all the resource types available in all resource forks open to your application.

PROCEDURE GetIndType (VAR theType: ResType; index: Integer);
theType
GetIndType returns, in this parameter, the resource type for the specified index among all the resource forks open to your application.
index
An integer ranging from 1 to the number of resource types in all resource forks open to your application.
DESCRIPTION
Given an index number from 1 to the number of resource types in all resource forks open to your application (as returned by CountTypes), the GetIndType procedure returns a resource type in the parameter theType. You can call GetIndType repeatedly over the entire range of the index to get all the resource types available in all resource forks open to your application. If the given index isn't in the range from 1 to the number of resource types as returned by CountTypes, GetIndType returns four null characters (ASCII code 0).

SPECIAL CONSIDERATIONS
The GetIndType procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.

RESULT CODE
noErr0No error
SEE ALSO
To check for errors, call the ResError function as described on page 1-47.

For more information about the CountTypes function, see page 1-97.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996