• 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: NSTexView not updated after setString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSTexView not updated after setString


  • Subject: RE: NSTexView not updated after setString
  • From: John Nairn <email@hidden>
  • Date: Fri, 04 Apr 2003 10:06:13 -0700

More information.

This is following to original posting on NSTextView not updating correctly when short text replaces very long text.

It seems that if I wait a long time (about 10 seconds) after inserting the long text, the new text will correctly replace the old text. A possible guess is that setString can take a long to time actually finish and that if new text if inserted before the old text if fully inserted (which probably means calculating things like line breaks), it will not insert correctly. Of course it is annoying to have to wait (and there is no NSTextView feedback that a wait is needed) before selecting new text. If this is the problem, what is the solution?

Another symptom showing the NSTextView is busy calculating is to drag the scroll bar down to the end. Initially the page marker goes to the end, but then moves up as the NSTextView finds more lines. If I wait until the page maker can be placed at the end and stay at the end, the subsequent insert of short text will work. If it is still moving, it will not.

------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu/~nairn
_______________________________________________
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: Cocoa in CodeWarrior
  • Next by Date: Re: right way to load initial data in controls when opening a window
  • Previous by thread: NSTexView not updated after setString
  • Next by thread: Cocoa in CodeWarrior
  • Index(es):
    • Date
    • Thread