Re: Custom control and cells
Re: Custom control and cells
- Subject: Re: Custom control and cells
- From: Michael Ash <email@hidden>
- Date: Fri, 9 Jul 2010 21:42:17 -0400
On Fri, Jul 9, 2010 at 6:22 PM, Georg Seifert <email@hidden> wrote:
> Hi,
> The thing is, I want to replicate the NSCollectionView but using cells instead of views. The NSCollectionView has a lot of problems like performance and I couldn’t find a way to get the rect of the view of an item (both fixed in Snow Leopard but I have to support Leopard).
If I were writing this today, I would use views. I would make it so
that it only had enough subviews to occupy the currently visible area.
The rest of the collection view would be empty. As the user scrolled,
I would create new views for the newly exposed items and add them
dynamically. If view creation is too slow for this, I would implement
some sort of view reuse mechanism that could load new data into the
views that have scrolled off screen. This is basically how UITableView
works on the iPhone, and if it can get good performance on that
platform, you ought to be able to do great on any Mac that can run OS
X.
Mike
_______________________________________________
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