Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!topix
From: topix@gpu.utcs.utoronto.ca (R. Munroe)
Subject: Volume RefNum Problems
Message-ID: <1991Jun7.093153.5509@gpu.utcs.utoronto.ca>
Organization: UTCS Public Access
Date: Fri, 7 Jun 1991 09:31:53 GMT

I am having some difficult volume refnum trouble.  I have a situation where it
is necessary to store the parameters of certain files into my apps prefs file
so I can easily access the files from a menu (much like ResEdit's Open Special
menu).  If I'm running my app and add a new file to the menu, I can open that
file from the menu with no trouble.  Before quitting, I store the file's
name and volume refnum in my prefs file.  When I restart my app, I can no longer
open the file - the vol refnum is the same as when I stored it, but the system
can't find the file.  If I reload the file, I find that, sure enough, the vol 
refnum is different this time around (which explains why I can't reopen the
file when I restart my app.  What else do I have to store in my prefs
file?  Am I storing the right stuff (file name and vol refnum)?

As always, any help is much obliged.

Bob Munroe
topix@utcs.utoronto.ca


