• 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
Slow horizontal scrolling w/NSMutableAttributedStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow horizontal scrolling w/NSMutableAttributedStrings


  • Subject: Slow horizontal scrolling w/NSMutableAttributedStrings
  • From: "John H. Lee" <email@hidden>
  • Date: Tue, 24 May 2005 15:07:16 -0700


I'm building an app that contains a single NSTableView with one column. My data source is an NSMutableArray of NSMutableAttributedStrings. Each of these strings contains up to a few thousand characters with about half of the characters having background colors set.


Vertical scrolling is fine, but horizontal scrolling is very slow. If I leave the strings unattributed, horizontal scrolling is much faster. When scrolling vertically by one row, only that new row is retrieved from my data source. Horizontal scrolling requires retrieval of all visible rows (~30). The problem persists if I use an NSTextView instead of NSTableView. All of this leads me to believe that my data source is plenty efficient (just an [array objectAtIndex:row]), so the problem must lie in the rendering of lots o' attributed strings.

Any suggestions here?  Thanks!

-John

--
John H. Lee
Berkeley Phylogenomics Group
http://phylogenomics.berkeley.edu

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: AppleScript: Returning object references in Cocoa
  • Next by Date: Grouping undo-able actions with CoreData
  • Previous by thread: Re: Drawing a view onto an image file
  • Next by thread: Re: Slow horizontal scrolling w/NSMutableAttributedStrings
  • Index(es):
    • Date
    • Thread