• 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: Erasing a NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Erasing a NSTextView


  • Subject: Re: Erasing a NSTextView
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 1 Sep 2003 18:27:42 -0500

On Monday, September 1, 2003, at 03:10 PM, Sanri Parov wrote:
is there a way to erase completely an NSTextView programmatically?
I mean, to do something similar to what you'd normally do in a text
editor by "Select All" and "Clear" functions.

Just set your NSTextView's represented text to the empty string.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.

References: 
 >Erasing a NSTextView (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Making a sheet from a view
  • Next by Date: build problem
  • Previous by thread: Re: build executable
  • Next by thread: Re: Erasing a NSTextView
  • Index(es):
    • Date
    • Thread