Re: How to clear the contents of a StringHandle?
Re: How to clear the contents of a StringHandle?
- Subject: Re: How to clear the contents of a StringHandle?
- From: Brian Webster <email@hidden>
- Date: Mon, 3 Dec 2001 18:13:31 -0600
This will set the contents of the handle all to zero:
memset(*myHandle, 0, GetHandleSize(myHandle));
On Monday, December 3, 2001, at 04:47 PM, cocoa-dev-
email@hidden wrote:
I have a code resource that I created for an application that has one
global StringHandle in it, and I would like to know how do I clear the
contents of the StringHandle without using DisposeHandle to get rid of
it and reallocating it? If I try using Munger, I notice that if the
previous string I inserted was longer than the new, the old
string still
appears. How do I take care of this? Thanks in advance!
Jaime
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster