• 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: Inserting in a read-only NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting in a read-only NSTextView?


  • Subject: Re: Inserting in a read-only NSTextView?
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 20 Apr 2004 10:52:42 -0700

On Apr 20, 2004, at 10:09 AM, Randall Meadows wrote:

I have an NSTextView where I write out progress message and errors, et al. I don't want the user to be able to type into or move the insertion point of this view, so I initially unchecked the Editable attribute in IB. But, that prevented me from adding text to it *programmatically*, so I *had* to turn the Editable bit on. Is there something else I'm missing, or do I need to wrap my programs -insertText: with -setEditable:YES|NO calls? That would still allow the user to *scroll* this view, right?

As I was just saying yesterday, insertText: is intended as the funnel point for user typing, and is unlikely to be suitable for any other purpose. Try a different API; for programmatic changes it is often appropriate to work directly with the text storage.

Douglas Davidson
_______________________________________________
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: 
 >Inserting in a read-only NSTextView? (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: Monitoring a folder?
  • Next by Date: Re: Inserting in a read-only NSTextView?
  • Previous by thread: Re: Inserting in a read-only NSTextView?
  • Next by thread: Re: Inserting in a read-only NSTextView?
  • Index(es):
    • Date
    • Thread