Path: utzoo!attcan!uunet!husc6!bbn!apple!well!brecher From: brecher@well.UUCP (Steve Brecher) Newsgroups: comp.sys.mac.programmer Subject: Re: My problems with AddResource Message-ID: <11336@well.UUCP> Date: 17 Apr 89 03:31:42 GMT References: <81471DN5@PSUVM> Reply-To: brecher@well.UUCP (Steve Brecher) Organization: Software Supply, Sunnyvale, CA Lines: 21 In article <81471DN5@PSUVM>, DN5@PSUVM.BITNET writes: > AddResource (Handle (aMyRecHandle), 'Jfmt', 129, ''); > SetResAttrs (Handle (aMyRecHandle), resPurgeable); > UpdateResFile (CurResFile); AddResource sets the resChanged resource attribute. The SetResAttrs call above will clear resChanged. See IM I-122, SetResAttrs -- but ignore the cited necessity of calling ChangedResource in any case, as SetResAttrs sets the mapChanged resource map attribute; in your case, AddResource sets mapChanged also. > ReleaseResource (Handle (aMyRecHandle)); > DisposHandle (Handle (aMyRecHandle)); ReleaseResource is equivalent to DetachResource followed by DisposHandle. See IM I-120, ReleaseResource. -- brecher@well.UUCP (Steve Brecher)