Slow horizontal scrolling w/NSMutableAttributedStrings
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