Important: The information in this document is obsolete and should not be used for new development.
Getting and Setting the Current Resource File
Most of the Resource Manager routines assume that the current resource file is the file on whose resource fork they should operate or, in the case of a search, the file where they should begin. In general, the current resource file is the last one whose resource fork your application opened unless you specify otherwise.Two routines work specifically with the current resource file:
CurResFile
andUseResFile
. TheCurResFile
function tells you which of the files whose resource forks are currently open is the current resource file. TheUseResFile
procedure sets the current resource file.The
HomeResFile
function gets the file reference number associated with a particular resource.
Subtopics
- CurResFile
- UseResFile
- HomeResFile