[comp.sys.mac.programmer] Help on changing resources?

jcocon@hubcap.clemson.edu (james c oconnor) (12/19/90)

I have Think C 4.0.  I do not have IM (yet).  Would someone please help
me to change a string resource?  I have a dialog with a string in an
editible text box.  The string is a resource which I am SetIText()ing.
I then GetIText() the string (and here is where I am stuck) and wish to
save it back over the old string in the resource fork.

Thanks for the help.
Jim

Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) (12/24/90)

JCO> I have Think C 4.0. I do not have IM (yet). Would someone please 
JCO> help me to change a string resource? I have a dialog with a string 
JCO> in an editible text box. The string is a resource which I am 
JCO> SetIText()ing. I then GetIText() the string (and here is where 
JCO> I am stuck) and wish to save it back over the old string in the 
JCO> resource fork. 

This is totally of the top of my head but I thing you can just asign the new
new string to Stringhandle^^ and then do a ChangedResource(Stringhandle);
 
 

--  
Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker
Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org