On Mar 2, 2015, at 04:44:12, Ben <ben_cocoa_dev_l...@yahoo.co.uk> wrote:
> 
> Since NSCell is apparently on the way out, I've been trying to build a new 
> control I need using views. It's a cut-down spreadsheet-alike grid, similar 
> to MBTableGrid here: https://github.com/brendand/mbtablegrid
> 
> Unfortunately, I am running into the to-be-expected performance trouble with 
> keeping a couple of hundred subviews in my control at the same time. It 
> particularly hurts when scrolling. Stuff I've tried includes:
> 
> - Removing the off-screen views when possible (still leaves about 150 on 
> screen)
> - Keeping a queue of reusable views to avoid allocating new ones
> - Attempting to have one view per grid item type and treat it like an NSCell 
> (i.e., lockFocus into the parent view and draw there)

Have you profiles it to see what's taking all the time?

--
Steve Mills
Drummer, Mac geek


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to