Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!van-bc!ubc-cs!alberta!cpsc.ucalgary.ca!news From: wieser@cs-sun-fsd.cpsc.ucalgary.ca (Bernhard Wieser) Newsgroups: comp.sys.mac.programmer Subject: Re: SFPGetFile Keywords: A4 SFGetFile dlgHook Message-ID: <1990Nov4.015528.2655@cpsc.ucalgary.ca> Date: 4 Nov 90 01:55:28 GMT References: <1990Nov3.032143.27001@cpsc.ucalgary.ca> Organization: U. of Calgary Computer Science Lines: 12 Nntp-Posting-Host: cs-sun-fsd Um, I am using reply.fType to get the directory ID from the dialog hook. The thing is, I don't want to have a global lying around to contain reply. I use SFSaveDisk (the system global which is the negative of the current SF volume) to figure out which volume I'm on; this helps heaps since cmd-shift eject and other commands are processed first so this value seems always current. I then use PBCatInfo to get folder names and stats. One thing which worries me; fType holds the dir id or the type when looked at in the dialog hook. I check the first byte to see if it is < 20, if so I think its a dir id but I have a feeling this isn't safe.