Re: How to clear text of an NSTextView
Re: How to clear text of an NSTextView
- Subject: Re: How to clear text of an NSTextView
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 30 Jan 2007 13:21:31 -0700
On Jan 30, 2007, at 2:40 AM, aashish tiwari wrote:
How can i clear text of an NSTextView object.
[[textView textStorage] setString:@""] ought to work. You'll probably
also have to make the text view redisplay itself afterwards using -
setNeedsDisplay:.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden