Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: Data Fork Of Currently Running APPL Message-ID: <42689@apple.Apple.COM> Date: 6 Jul 90 02:47:03 GMT References: Organization: Apple Computer Inc., Cupertino, CA Lines: 25 cl29+@andrew.cmu.edu (Cameron Christopher Long) writes: >I am working on a program that stores data in its data fork. Currently, >I am opening the data fork using FOPEN since I know the name of the APPL. >However, if someone renames the program, how will I know what to open? Use PBGetFCBInfo (IM4, pg. 179) with the refCon of the application's resource fork as the file refCon. This gives you the name of the application, whether it is locked, where it is on disk, etc. >All suggestions are most appreciated, >Cameron Altenhof-Long >cl29@andrew.cmu.edu You're welcome. -- ----------------------------------------------------------------------------- | Glenn L. Austin | "Turn too soon, run out of room, | | Auto Racing Enthusiast and | Turn too late, much better fate" | | Communications Toolbox Hacker | - Jim Russell Racing School Instructors | | Apple Computer, Inc. | "Drive slower, race faster" - D. Waltrip | | Internet: austing@apple.com |-------------------------------------------| | AppleLink: AUSTIN.GLENN | All opinions stated above are mine -- | | Bellnet: (408) 974-0876 | who else would want them? | -----------------------------------------------------------------------------