Re: Delete contents of NSTextView...
Re: Delete contents of NSTextView...
- Subject: Re: Delete contents of NSTextView...
- From: Shawn Erickson <email@hidden>
- Date: Sun, 30 Jun 2002 07:47:00 -0700
Either Albert's date is a year off or I am replying to an email the got
stuck in the system for a LOOOONG time.
On Saturday, June 30, 2001, at 07:21 AM, Albert Atkinson wrote:
Hello!
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.
Any suggestions?
RSCD (read super class docs) ;-)
NSTextView is a view into text. It doesn't define many of the non user
interaction related text manipulation methods, it inherits them from
NSText (its super class).
So look at the docs for NSText.
- setString:
or
- replaceCharactersInRange: ....
-Shawn
_______________________________________________
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.