Re: Cannot D&D from an NSTableView
Re: Cannot D&D from an NSTableView
- Subject: Re: Cannot D&D from an NSTableView
- From: Koen van der Drift <email@hidden>
- Date: Mon, 14 Nov 2011 18:45:34 -0500
On Nov 14, 2011, at 4:49 PM, Graham Cox wrote:
>
> On 15/11/2011, at 12:05 AM, Koen van der Drift wrote:
>
>> I am using a custom cell
>
>
> This is most likely the cause. Try substituting a standard text cell and see if the drag works. If so, you know where to look.
>
> Cells are often very tricky in all sorts of subtle ways, and hard to get right. They are meant to "fit in" in so many different places that ensuring a custom cell works correctly is usually a lot more trouble that it's worth. You may find, depending on what OS versions you plan to support, that using the more recent custom view support will be easier.
>
> --Graham
>
>
Hi Graham,
You were right. Implementing the custom cell, even though I only was calling drawFrameRect caused the D&D not to work.
Thanks,
- Koen._______________________________________________
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