• 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 causes lockups when appending too quickly and/or scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView causes lockups when appending too quickly and/or scrolling


  • Subject: NSTextView causes lockups when appending too quickly and/or scrolling
  • From: Steven Moore <email@hidden>
  • Date: Tue, 3 Jun 2008 17:43:47 -0700

I'm trying to use an NSTextView to display the output of a shell script, but when my script outputs too much data, too quickly (on the order of a dozen lines nearly simultaneously), my app gives up with a pinwheel. I'm using an NSPipe to get the data, readInBackgroundAndNotify to know when to put it in my view, and [[[myTextView] textStorage] appendAttributedString:] to do the actual view updating. After a while, when my view starts to contain thousands of lines or so, attempting to do any scrolling causes a pinwheel for some length of time. Any ideas on how I could do this better? My only requirements are that it updates in near realtime, can support near- unlimited butter size, and supports attributed strings, so I can color specific keywords.

Thanks in advance,
Steven
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView causes lockups when appending too quickly and/or scrolling
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: My windows don't cascade
  • Next by Date: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Previous by thread: Re: IB Plugin Exchange / Apple Pro Apps Elements?
  • Next by thread: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Index(es):
    • Date
    • Thread