• 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: Insert text at end of Textview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Insert text at end of Textview


  • Subject: Re: Insert text at end of Textview
  • From: Arthur Clemens <email@hidden>
  • Date: Thu, 3 Oct 2002 17:52:27 +0200

I use (in perl, so this is a bit of a back translation):

[[myTextView textStorage] appendAttributedString: @"blahblah"];

but there's probably a good reason to not do that.
--


No, of course, appendAttributedString! I forgot about that one.
It is the other way around: with appendAttributedString your text cursor moves to the end of the text, so you might want to reset it using setSelectedRange.

Arthur
_______________________________________________
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: 
 >Re: Insert text at end of Textview (From: Dan Sugalski <email@hidden>)

  • Prev by Date: Embedding a scripting language into Cocoa app
  • Next by Date: Re: Embedding a scripting language into Cocoa app
  • Previous by thread: Re: Insert text at end of Textview
  • Next by thread: Re: Insert text at end of Textview
  • Index(es):
    • Date
    • Thread