• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView: how to avoid insertion of text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTextView: how to avoid insertion of text
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Vertical splitview bug fixed?
  • Next by Date: Using NSImage in command line tool
  • Previous by thread: Vertical splitview bug fixed?
  • Next by thread: Re: NSTextView: how to avoid insertion of text
  • Index(es):
    • Date
    • Thread