[comp.sys.mac.programmer] Was problems with PBgetCat

jtn@potomac.ads.com (Dark Hacker) (03/08/91)

I'd like to thank everyone who responded to my question about
PBGetCat().  A routine I wrote called directoryP(), which uses
PBgetCat, was not working properly.  It turns out that I was not
clearing the ioDirID before calling PBGetCat and thus "poisoning" the
call (thanks to Ben Cranston for this fix).  IM isn't clear about this
but you may have to clear out the ioFVersNum too.

It looks like working directories are pretty much uneeded except when
doing things that always require them, and if you're stuck with a
working directory refNum there are ways to get more info about the
folders from PBGetWDInfo().

I have a DialogHook function that returns a (long) dirID to the folder
I am processing so I don't really need the vRefNum (working refNum)
returned by SFGetFile.  With the long I can do all kinds of fun stuff!

Thanks.



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ORGANIZATION:  Advanced Decision Systems   GEOGRAPHIC: Arlington, VA
UUCP:          kzin!speaker@mimsy.umd.edu  INTERNET:   jtn@potomac.ads.com
SPOKEN:        Dark Hacker                 PHONE:      (703) 243-1611

The Mythos of Dark Hacker:

"Controlled by the sinister and shadowy "suits" Dark Hacker now employs
the tools of computer science to free himself from the suit's will.
By day he is a lackey... but at night when the city sleeps he
becomes.... DARK HACKER!"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=