Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsMacResources.cpp File Reference
#include "nsMacResources.h"
#include <Resources.h>
#include <MacWindows.h>

Go to the source code of this file.

Functions

pascal OSErr __NSInitialize (const CFragInitBlock *theInitBlock)
pascal OSErr __initializeResources (const CFragInitBlock *theInitBlock)
pascal void __NSTerminate (void)
pascal void __terminateResources (void)

Function Documentation

pascal OSErr __initializeResources ( const CFragInitBlock *  theInitBlock)

Definition at line 55 of file nsMacResources.cpp.

{
    OSErr err = __NSInitialize(theInitBlock);
    if (err)
       return err;

       short saveResFile = ::CurResFile();

       short refNum = FSpOpenResFile(theInitBlock->fragLocator.u.onDisk.fileSpec, fsRdPerm);
       nsMacResources::SetLocalResourceFile(refNum);

       ::UseResFile(saveResFile);

       return ::ResError();
}

Here is the call graph for this function:

pascal OSErr __NSInitialize ( const CFragInitBlock *  theInitBlock)

Here is the caller graph for this function:

pascal void __NSTerminate ( void  )

Here is the caller graph for this function:

Definition at line 75 of file nsMacResources.cpp.

Here is the call graph for this function: