Re: Insert text at end of Textview
Re: Insert text at end of Textview
- Subject: Re: Insert text at end of Textview
- From: Dan Sugalski <email@hidden>
- Date: Thu, 3 Oct 2002 11:17:10 -0400
At 2:50 PM +0200 10/3/02, Alexander Griekspoor wrote:
Hello all,
I've tried to search the archives, but couldn't find an answer to the
following question:
How do I make sure that my text is inserted at the end of the contents
of my textview?
I now how to make my textview first responder, and how to insert the
text with
[myTextView insertText: @"blabla"];
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.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
email@hidden have teddy bears and even
teddy bears get drunk
_______________________________________________
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.