Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: GetIndString, where is the reverse? Keywords: GetIndString C ToolBox Message-ID: <1313@helios.ee.lbl.gov> Date: 25 Nov 88 23:10:15 GMT References: <1012@ccnysci.UUCP> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Distribution: comp.sys.mac.programmer Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 20 In article <1012@ccnysci.UUCP> cpyang@ccnysci.UUCP (Chao Ping Yang) writes: > > I am keeping a lot of strings in resources and I need to update >them when running my program, but how do I change resource data? >Or how do I do the reverse of GetIndString? All I can find from >the Toolbox routines are handles to the resource and the structures >of the resource files, but that look like a lot of work. > >Can somebody help me on this? This newsgroup has been very helpful. > >==Chaoping Usually, all I do to change a resource is get the handle to the data, make the changes, and then call ChangedResource(handle). This tells the resource manager that your resource has changed and should be updated. Then call UpdateResFile(refNum). I hope this helps. Patrick Beard Lawrence Berkeley Laboratory