Carbon


Get1IndType

Header: Resources.h Carbon status: Supported

Gets a resource types available in the current resource file.

void Get1IndType (
    ResType *theType, 
    SInt16 index
);
theType

On return, the resource type with the specified index in the current resource file.

You can call this function 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, this parameter contains four null characters (ASCII code 0).

index

An integer ranging from 1 to the number of resource types in the current resource file, as returned by the Count1Types function.

DISCUSSION

To check for errors, call the ResError function.

SPECIAL CONSIDERATIONS

This function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)