• 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
Re: NSTextView: how to avoid insertion of text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView: how to avoid insertion of text


  • Subject: Re: NSTextView: how to avoid insertion of text
  • From: Malte Tancred <email@hidden>
  • Date: Thu, 2 May 2002 08:58:55 +0200

On tuesday, april 30, 2002, at 12:16 , 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.

How to avoid this ?

Try appending the string to the text storage of the text view.

[[textView textStorage] appendAttributedString:aString];


Cheerio,
Malte

--
Malte Tancred
Computer programmer, Oops AB, Sweden
mailto:email@hidden
http://www.oops.se/
_______________________________________________
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.

  • Prev by Date: Design-Question for Distributed Objects
  • Next by Date: Re: Changing Icons
  • Previous by thread: Design-Question for Distributed Objects
  • Next by thread: NSString problem
  • Index(es):
    • Date
    • Thread