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

Re: NSTextView question...


  • Subject: Re: NSTextView question...
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 5 Oct 2003 21:11:57 -0700

On Sunday, October 5, 2003, at 07:38 PM, Alex Lock wrote:

I want to be able to dynamically put text in a text field, but I do NOT want said field to be editable. It seems when disabling editability in IB it also makes the textView insertString: message stop working. So, how does one accomplish this seemingly easy goal?

This is pretty easy, actually...

[textView setEditable:YES];
[textView insertText:someString]; // where someString is an object with text (NSString, NSAttributedString, etc.)
[textView setEditable:NO];

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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: NSTextView question...
      • From: Alex Lock <email@hidden>
References: 
 >NSTextView question... (From: Alex Lock <email@hidden>)

  • Prev by Date: Re: Using NSMutableString* for NSString* result
  • Next by Date: Re: NSTextView question...
  • Previous by thread: NSTextView question...
  • Next by thread: Re: NSTextView question...
  • Index(es):
    • Date
    • Thread