Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!usc!apple!jsm From: jsm@apple.com (Jeff Miller) Newsgroups: comp.sys.mac.programmer Subject: Re: Pasting icon/picts onto icons in get-info boxes Message-ID: <53419@apple.Apple.COM> Date: 29 May 91 01:15:44 GMT References: <1991May27.203211.3542@ulowell.ulowell.edu> Sender: nntp@Apple.COM Organization: Apple Computer, Inc. Lines: 32 In article <1991May27.203211.3542@ulowell.ulowell.edu>, jkeegan@hawk.ulowell.edu (Jeff Keegan) writes: > I like the feature of System 7 that allows you to paste a PICT (preferably > ICON sized) into the get info box in the finder, to give something another > icon.. The thing I'm wondering though is considering the lack of a mask > definition, how does it determine a mask? Is it doing the same thing that > ResEdit does when you drag a icl8 to the mask field? And where is this > information kept, the new desktop files? (forgive me if this is covered in > Inside Macintosh VI, I have yet to be able to obtain a copy).. > > ------------------------------------------------------------------------------- > | Jeff Keegan | I clutch the wire fence until my fingers bleed | > | jkeegan@hawk.ulowell.edu | A wound that will not heal | > |----------------------------| A heart that cannot feel | > | This space intentionally | Hoping that the horror will receed | > | left blank | Hoping that tomorrow we'll all be freed -RUSH | > ------------------------------------------------------------------------------- > We use CalcMask, as documented in Inside Mac Vol IV, to calculate the mask from a PICT. As you've discovered, this algorithm doesn't always work as well as a manually generated mask. The Finder expects at least an ICN# on the Clipboard in order to paste an icon rather than a PICT, since the ICN# has the mask data. So make sure you generate an ICN# to go along with your icl8. For volumes and folders, the custom icons are kept in an invisible file called "Icon" at the root level. For files, they're kept in the resource fork. Jeff Miller Macintosh System Software jsm@apple.com >