Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!decwrl!apple!apple.com!rmh From: rmh@apple.com (Rick Holzgrafe) Newsgroups: comp.sys.mac.programmer Subject: Re: Danger Will Robinson, traps for young player. Message-ID: <9887@goofy.Apple.COM> Date: 22 Aug 90 17:27:56 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 20 References:<11591@wehi.dn.mu.oz> <1990Aug20.143025.2160@eng.umd.edu> <1990Aug21.181707.19112@nada.kth.se> In article <1990Aug21.181707.19112@nada.kth.se> d88-jwa@dront.nada.kth.se (Jon W{tte) writes: > In article <1990Aug20.143025.2160@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes: > >>1) Why the hell is the handle to the resource attached to that resource? > > Use DetachResource() ! Um, don't use DetachResource for a resource from the System file. It's shared, you could screw up somebody else (like the System). Use HandToHand, as many have suggested, if you need a handle to a private, unattached copy. ========================================================================== Rick Holzgrafe | {sun,voder,nsc,mtxinu,dual}!apple!rmh Software Engineer | AppleLink HOLZGRAFE1 rmh@apple.com Apple Computer, Inc. | "All opinions expressed are mine, and do 20525 Mariani Ave. MS: 3-PK | not necessarily represent those of my Cupertino, CA 95014 | employer, Apple Computer Inc."