Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!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: <9859@goofy.Apple.COM> Date: 21 Aug 90 18:54:10 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 29 References:<1990Aug20.143025.2160@eng.umd.edu> <11591@wehi.dn.mu.oz> <1990Aug20.193639.7986@Neon.Stanford.EDU> In article <1990Aug20.193639.7986@Neon.Stanford.EDU> philip@pescadero.Stanford.EDU (Philip Machanick) writes: > In article <1990Aug20.143025.2160@eng.umd.edu>, russotto@eng.umd.edu > (Matthew T. Russotto) writes: > > It may not be-- it may only be changed until you reboot-- remember that there > > is only one resource handle for all applications that use the string. > Clarification please. If the resource is loaded into the system heap, this may > be true, but don't the resource loading traps treat requests from different > applications independently (1 resource map per application zone)? > > Philip Machanick > philip@pescadero.stanford.edu If your app opens a resource file explicitly, yes. Your app's own resource fork, yes. These are private copies in your own application heap. But the System resource map is shared among all running apps. The map is kept in the System heap and is unique. (Imagine the chaos if two apps made differing changes to private copies of the system resource map, and then wrote them out.) ========================================================================== 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."