Re: Deleting contents of NSTextView...
Re: Deleting contents of NSTextView...
- Subject: Re: Deleting contents of NSTextView...
- From: Sherm Pendley <email@hidden>
- Date: Sun, 30 Jun 2002 10:46:27 -0400
On Sunday, June 30, 2002, at 10:36 AM, Albert Atkinson wrote:
How would I go about deleting all the contents of an NSTextView? I
tried the insertText method but as the name says, it does not
replace the text, just inserts it. I need something like the
setStringValue in the NSTextField.
Check the archives - someone asked this question exactly a year ago
today. ;-)
Seriously, though... check out the setString: method in NSTextView's
parent class, NSText.
A related question is, why does NSText define a different method for
this, instead of overriding NSControl's setStringValue: method as most
controls do?
sherm--
Never put off until tomorrow what you can do today. There might be a law
against it by that time.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.