int Tcl_MacEvalResource(interp, resourceName, resourceNumber, fileName)
Handle Tcl_MacFindResource(interp, resourceType, resourceName, resourceNumber, resFileRef, releaseIt)
void Tcl_SetOSTypeObj(objPtr, newOSType)
int Tcl_GetOSTypeFromObj(interp, objPtr, osTypePtr)
The described routines are used to implement the Macintosh specific resource command and the Mac specific notifier.. They manipulate or use Macintosh resources and provide administration for open resource file references.
Tcl_MacEvalResource extends the source command to Macintosh resources. It sources Tcl code from a Text resource. Currently only sources the resource by name, file IDs may be supported at a later date.
Tcl_MacConvertTextResource converts a TEXT resource into a Tcl suitable string. It mallocs the returned memory, converts ``\r'' to ``\n'', and appends a null. The caller has the responsibility for freeing the memory.
Tcl_MacFindResource provides a higher level interface for loading resources. It is used by resource read.
Tcl_NewOSTypeObj is used to create a new resource name type object. The object type is "ostype".
Tcl_SetOSTypeObj modifies an object to be a resource type and to have the specified long value.
Tcl_GetOSTypeFromObj attempts to return an int from the Tcl object "objPtr". If the object is not already an int, an attempt will be made to convert it to one.
Tcl_MacSetEventProc sets the event handling procedure for the application. This function will be passed all incoming Mac events. This function usually controls the console or some other entity like Tk.
Resource types are 4-byte values used by the macintosh resource facility to tag parts of the resource fork in a file so that the OS knows how to handle them. As all 4 bytes are restricted to printable characters such a type can be interpreted as a 4 character string too.