Re: NSTextView insrting text
Re: NSTextView insrting text
- Subject: Re: NSTextView insrting text
- From: Mike Abdullah <email@hidden>
- Date: Thu, 30 Mar 2006 23:05:30 +0100
I think because it is not editable, one cannot "insert" text.
However, you probably can replace the text in the field without
making it editable.
So, get the contents, use stringWithFormat or whatever to get the new
string, and place it in there.
Mike.
P.S. someone please correct me if I'm wrong!
On 30 Mar 2006, at 22:51PM, Paul L. Gribble wrote:
When adding text to an NSTextView using insertText: it seems only
to work if the NSTextView is Editable. So I have a workaround where
I set it to be editable, then insertText, then set it not to be
editable (I want it to be sort of a readout for the user who should
not be able to type in it).
I must be doing it wrong ...???
Thanks,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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