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

Re: insertText


  • Subject: Re: insertText
  • From: Adam Leonard <email@hidden>
  • Date: Tue, 3 Jan 2006 22:33:20 -0800

The docs recommend only using insertText for actual user input. It recommends using NSTextContainer, although you can also just use NSText's methods for what your doing. Look at -string and -setString:

-Adam Leonard

On Jan 3, 2006, at 8:48 PM, Chad Armstrong wrote:

I have an NSTextView, named textView, and I want to insert some text in it to be displayed. So, here is the snippet of code I call:

[textView insertText:@"Hello"];

However, from the tests I've run, nothing appears. Am I completely missing the point for something here, or do I need to tell the NSTextView to refresh itself?

Chad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >insertText (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Text height for printing (fixed width)
  • Next by Date: Re: Uniform Type Identifiers (UTIs)
  • Previous by thread: Re: insertText
  • Next by thread: How to execute the .app from the Terminal window
  • Index(es):
    • Date
    • Thread