NSTextView: how to avoid insertion of text
NSTextView: how to avoid insertion of text
- Subject: NSTextView: how to avoid insertion of text
- From: Gilles Celli <email@hidden>
- Date: Tue, 30 Apr 2002 12:16:45 +0200
Hi,
I have the following problem:
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.
How to avoid this ?
I tried with setEnabled, setEditable to NO but then no text/data will be
Displayed...
Here is an example
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 ???
...
Cheers,
* * Gilles Celli
* * European Center for Geodynamics and Seismology
* ECGS * 19, rue J. Welter, L-7256 Walferdange, Gd Duchy of Luxembourg
* * Tel: (+ 352) 33.61.30 /\ Fax: (+ 352) 33.61.29
* * email@hidden __/ \ /\ ___ Web Page: www.ecgs.lu
\/ \/
_______________________________________________
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.