Am 10.07.2010 um 03:42 schrieb Michael Ash:

> On Fri, Jul 9, 2010 at 6:22 PM, Georg Seifert <georg.seif...@gmx.de> 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.
> 
I understand.

Jumping through some more holes, I did manage to implement most things I needed.

On thing I can’t figure out, is how to implement extending the selection with 
the shift key. Only the command modifier works by default.

Georg

> Mike
> _______________________________________________
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/georg.seifert%40gmx.de
> 
> This email sent to georg.seif...@gmx.de

_______________________________________________

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

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

Reply via email to