Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple2 Subject: Re: SFGetFile / Pascal Question Message-ID: <52740@apple.Apple.COM> Date: 11 May 91 01:33:08 GMT References: Distribution: comp Organization: Apple Computer Inc., Cupertino, CA Lines: 28 In article tooly@zelator.uucp (Theo Schneider) writes: >Hi there, > >i got an problem with an FilterProc for SFGetFile in Complete Pascal. >In the FilterProc i will check if the File have an ResourceFork or not. > >TB Ref3 says that the Pointer for the FilterProc is an Pointer to an >DirEntryRec Template. Matt D's reply is correct, and I have a couple things to add: (1) Future version of standard file will probably provide all the available parameters for you in the DirEntry structure. However, I *don't* recommend that you write code now to check for that case *unless* you're going to actually simulate that happening and trace you code with GSBug. (2) You can get almost the same effect you wanted by checking the Flags parameter (right after ref_num in the template). Bit 15 is set if the file is extended. (It can be extended and still have no blocks in the resource fork, but usually that won't happen anyway.) -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II System Software Engineer | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie:DAVE.LYONS CompuServe:72177,3233 Internet:dlyons@apple.com My opinions are my own, not Apple's.