Re: NSTextView: how to avoid insertion of text
Re: NSTextView: how to avoid insertion of text
- Subject: Re: NSTextView: how to avoid insertion of text
- From: Shawn Erickson <email@hidden>
- Date: Tue, 30 Apr 2002 08:40:07 -0700
On Tuesday, April 30, 2002, at 03:16 AM, Gilles Celli wrote:
I am acquiring data from a Humiditymeter. The data is inserted line by
line
In an NSTextView field. However as the data comes in every second and
if a
user clicks on the NSTextView field it happens that the Text is
inserted at
the click Point
[snip]
Normal operation of data coming in:
01041101960346
01041101970347
Now if a user clicks at the end of the line, the method insertText will
put
it like this:
01041101960346
0104110197034701041101960348 => how to avoid ???
So you are using a NSTextView to list the data you have received or
collected via some other method correct?
In IB (or programmatically) you can mark the view to not support editing
(the "Editable" check box). This should block the user from modifying
things, including the insertion point.
At least in theory...
-Shawn
_______________________________________________
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.