• 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: Deleting contents of NSTextView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting contents of NSTextView...


  • Subject: Re: Deleting contents of NSTextView...
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 30 Jun 2002 10:46:27 -0400

On Sunday, June 30, 2002, at 10:36 AM, Albert Atkinson wrote:

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.

Check the archives - someone asked this question exactly a year ago today. ;-)

Seriously, though... check out the setString: method in NSTextView's parent class, NSText.

A related question is, why does NSText define a different method for this, instead of overriding NSControl's setStringValue: method as most controls do?

sherm--

Never put off until tomorrow what you can do today. There might be a law against it by that time.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Deleting contents of NSTextView...
      • From: Isaac Sherman <email@hidden>
References: 
 >Deleting contents of NSTextView... (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Re: Delete contents of NSTextView...
  • Next by Date: Re: Figuring out the way the document classes work together. Some questions.
  • Previous by thread: Deleting contents of NSTextView...
  • Next by thread: Re: Deleting contents of NSTextView...
  • Index(es):
    • Date
    • Thread