• 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: Scott Anguish <email@hidden>
  • Date: Thu, 3 Oct 2002 13:35:34 -0700

I covered just this situation in my talk at O'Reilly yesterday...

if you're using plain text, then do this

NSRange insertAtEnd=NSMakeRange([[theTextView textStorage] length],0);
[theTextView replaceCharactersInRange:insertAtEnd withString:@"new string"];
_______________________________________________
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: 
 >Insert text at end of Textview (From: Alexander Griekspoor <email@hidden>)

  • Prev by Date: Re: NSUIElement
  • Next by Date: notification on windowing being frontmost.
  • Previous by thread: Re: Insert text at end of Textview
  • Next by thread: Re: Insert text at end of Textview
  • Index(es):
    • Date
    • Thread