• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clear a NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Clear a NSTextView? (From: Jesper Nilsson <email@hidden>)

  • Prev by Date: Re: Printing PDF even/odd pages - was Re: Text Editor
  • Next by Date: AppKit from CLI
  • Previous by thread: Re: Clear a NSTextView?
  • Next by thread: simple question about uncaughtExceptionHandler
  • Index(es):
    • Date
    • Thread