Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: Data files with associated icons and owners. Message-ID: <34035.27833A51@stjhmc.fidonet.org> Date: 3 Jan 91 14:01:29 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 32 MG> Here's the deal. I've been racking my brains with this and the MG> limited number of resources I've had available to me. I'm writing MG> a program (no kidding) in which data files are created. I want MG> to know how to copy an icon from my ICN# list to be the desktop MG> icon for my data file. ALSO, I would have to change the owner MG> of the data file. Please, don't kick me if this is something MG> too obvious. I thought there was a resource fork at work here, MG> but my data files from MathCAD and Word have unique icons and MG> no resource forks. Mike The unique icons are stored in the resource fork of the application that creates the data files. The last time I explained this it took me four pages and a lot of screen dumps to make it clear. My best advice is to look around on line for the ResEdit Docs which explain it pretty well. There were also some pretty good descriptions of the precess available for DLing on the major BBS. In any case, take a good look at one of your Apps that creates a unique document icon with ResEdit. Pay attention to the ICN#, FREF and BNDL resources. Also note that the creator of the App and all it's documents must be the same. Note that the App must have its bundle bit set. Maybe you can figure it out from examples. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org