• 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: 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.

References: 
 >NSTextView: how to avoid insertion of text (From: Gilles Celli <email@hidden>)

  • Prev by Date: Help Viewer issue
  • Next by Date: Re: Refresh woes for custom OGL pane
  • Previous by thread: NSTextView: how to avoid insertion of text
  • Next by thread: Re: NSTextView: how to avoid insertion of text
  • Index(es):
    • Date
    • Thread