Re: NSTextView question...
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.