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


Get1IndType

You can use the Get1IndType procedure to get all the resource types available in the current resource file.

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

SPECIAL CONSIDERATIONS
The Get1IndType 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 a description of the Count1Types function, see page 1-97.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996