Re: Custom control and cells
Re: Custom control and cells
- Subject: Re: Custom control and cells
- From: Michael Watson <email@hidden>
- Date: Fri, 9 Jul 2010 16:17:24 -0700
In what way do you believe a custom NSCell-based replication of NSCollectionView will perform better than NSCollectionView itself? What performance issue have you seen? Are you sure the problem lies with NSCollectionView and not your own code surrounding it? (I.e., have you Sharked your application?)
--
michael
On 09 Jul, 2010, at 15:22, Georg Seifert 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).
>
> It would be interesting anyway if I could implement my own controls.
>
> Best
> Georg
>>
>> On Jul 7, 2010, at 4:14 AM, Georg Seifert wrote:
>>
>>> Hi,
>>>
>>> I try to find an example on how to implement the mouse tracking and editing behavior of a NSCell from my own control (subclass of NSControl). I need a control that can handle several kinds of cells like ImageAndTextCell (with editing) or popup button cells.
>>>
>>> I read a lot about it but can’t fit it together.
>>
>> It is probably easiest to just use controls that contain the cells, and not try to make your control directly use multiple cells. With today's hardware, the performance gains are not worth the extra coding effort.
>>
>> corbin
>>
>>
>
> _______________________________________________
>
> 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
_______________________________________________
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