Re: How to support larger NSView hierarchy?
Re: How to support larger NSView hierarchy?
- Subject: Re: How to support larger NSView hierarchy?
- From: Quincey Morris <email@hidden>
- Date: Mon, 27 Feb 2012 22:21:36 -0800
On Feb 27, 2012, at 20:46 , Graham Cox wrote:
> Jeez.
Indeed. Especially as it's usually taken as a given that large numbers of NSViews aren't going to perform well. Trying to make the scenario work might be quixotic at best.
However, two thoughts did spring to mind:
1. It might be easier (and faster) to just hide the subviews as they scroll out of the visibleRect, and show them as they scroll in. I'd *imagine* that lots of hidden views wouldn't be a big problem for drawing.
2. If the views are arranged linearly, which seems like one possible interpretation of the OP's scenario description, then it might be possible to use the new view-based NSTableView, since that configuration basically caches a small number of actual "cell" views even if the total number of cells is huge.
_______________________________________________
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