Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!nuchat!buster!brain!chuck From: chuck@brain.UUCP (Chuck Shotton) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File and Working directories... Message-ID: Date: 25 Jun 91 05:12:37 GMT Reply-To: chuck@brain.uucp Organization: BIAP Systems Lines: 26 X-Mailer: uAccess - Mac Release: 1.5 In article <54282@apple.Apple.COM>, keith@Apple.COM (Keith Rollin) writes: > You don't want to do this. Rather than taking SFSaveDisk and > CurDirStore and turning them into a WD, you want to turn the logic > around. Take the WD that is given you by standard file and decompose it > to its corresponding dirID and vRefNum. This is done with a simple call > to PBGetWDInfo (or just GetWDInfo). > > The reason why you don't want to create WD's is because the table that > maps WD's into their dirID/vRefnum pairs is a fixed size table. If you > fill it up, your system crashes. And the table tends to get full > because there is no good way to determine which entries can be > removed. The system takes care of WD's created by standard file, but > any that you create are harder to handle. By eschewing WD's, you avoid > these problems. > Given the raft of Tech Notes on the subject, and the general noise concerning them, I get the impression that Working Directories have fallen from grace. Do they serve a purpose anymore? Why would I ever use one? (This IS a serious question.) Whose idea were they anyway? (NOT a serious question.) ----------------------------------------------------------------------- Chuck Shotton Internet: cshotton@girch1.med.uth.tmc.edu BIAP Systems UUCP: ...!buster!brain!chuck "Your silly quote here." AppleLink: D1683 MacNet: shotton