Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!news.cs.indiana.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: Re: Yikes: Using both resource & data forks of a file Message-ID: <1991Apr17.134645.2516@ux1.cso.uiuc.edu> Date: 17 Apr 91 13:46:45 GMT References: <0B01FFFF.dbbnhif@tbomb.ice.com> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at U-C Lines: 11 >map for OpenRFPerm() to load, thus the EOF error. You must, therefore, >create the map (and other needed space) in the resource fork with >a CreateResFile() call. This is *certainly* not obvious from IM. Since I almost always end up using the resource forks of files I create (window position info, for one), I ALWAYS use CreateResFile, not Create, to create files. I then don't have to do any special monkeying around to use either fork. -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner