Inserting in a read-only NSTextView?
Inserting in a read-only NSTextView?
- Subject: Inserting in a read-only NSTextView?
- From: Randall Meadows <email@hidden>
- Date: Tue, 20 Apr 2004 13:09:52 -0400
I have an NSTextView where I write out progress message and errors,
et al. I don't want the user to be able to type into or move the
insertion point of this view, so I initially unchecked the Editable
attribute in IB. But, that prevented me from adding text to it
*programmatically*, so I *had* to turn the Editable bit on. Is there
something else I'm missing, or do I need to wrap my programs
-insertText: with -setEditable:YES|NO calls? That would still allow
the user to *scroll* this view, right?
--
randy
There are three kinds of men:
Those who learn by reading.
Those who learn by observation.
And those who just have to pee on the electric fence for themselves.
_______________________________________________
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.