Re: Clear a NSTextView?
Re: Clear a NSTextView?
- Subject: Re: Clear a NSTextView?
- From: John Hörnkvist <email@hidden>
- Date: Fri, 23 Nov 2001 16:55:31 +0100
On Friday, November 23, 2001, at 04:17 , Jesper Nilsson wrote:
What is the bestway to clear out all the text inputted in a TextView?
Do I have to select text and in that case how do I select all the text
in a TextView?
(NSTextView is a subclass of NSText)
[textView setString:@""];
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com