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


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 and UseResFile. The CurResFile function tells you which of the files whose resource forks are currently open is the current resource file. The UseResFile procedure sets the current resource file.

The HomeResFile function gets the file reference number associated with a particular resource.


Subtopics
CurResFile
UseResFile
HomeResFile

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996