Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!ux1.cso.uiuc.edu!resnick
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Re-opening my resource file.
Message-ID: <1991Mar19.002406.23347@ux1.cso.uiuc.edu>
Sender: usenet@ux1.cso.uiuc.edu (News)
Organization: University of Illinois at Urbana
Date: Tue, 19 Mar 1991 00:24:06 GMT
Lines: 20

I have been pouring through Inside Mac looking for an easy way to do
this but can find nothing:

I am writing an INIT which installs a ShutDownProc. At shutdown time, I
will want to re-open my resource file to play with some resources. At
INIT time, I know the refNum of my resource file (CurResFile) and can
easily retrieve it's DirID, etc with File Manager calls. But what is
the best way to tell my shutdown proc which resource file it is to
re-open? I can store the filename and vRefNum or DirID into the code
itself, but this seems like a pain, let alone the fact that some bozo
might change my file name or something like that. Does anyone have any
recommendations of a better way?

pr
--
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet/ARPAnet/EDUnet  : resnick@cogsci.uiuc.edu
BITNET (if no other way) : FREE0285@UIUCVMD
