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: Esteban Uribe <email@hidden>
- Date: Tue, 30 Apr 2002 16:03:55 -0700 (PDT)
How about using [myTextView setString: [[myTextView string] stringByAppendingString:incomingString]]; ? setString is a method of NSText which is NSTextView's super
-Esteban
On Tuesday, April 30, 2002, at 09:44PM, Gilles Celli <email@hidden> wrote:
>
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.
_______________________________________________
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.