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:
CurResFileandUseResFile. TheCurResFilefunction tells you which of the files whose resource forks are currently open is the current resource file. TheUseResFileprocedure sets the current resource file.The
HomeResFilefunction gets the file reference number associated with a particular resource.
Subtopics
- CurResFile
- UseResFile
- HomeResFile