Re: cocoa -draggingImageComponents not called
Re: cocoa -draggingImageComponents not called
- Subject: Re: cocoa -draggingImageComponents not called
- From: Martin Hewitson <email@hidden>
- Date: Fri, 12 Apr 2013 06:28:32 +0200
OK, one solution I found is to embed all my subviews in a container view, and do the drawing there. Then I have to handle selection, but that turned out to be not too bad. So, unless anyone suggests a better way to do this, this will do for now.
Thanks!
Martin
On Apr 11, 2013, at 08:46 PM, Martin Hewitson <email@hidden> wrote:
> Dear list,
>
> I'm continuing my adventures in view-based tableview land. I've got drag-n-drop working nicely, but I'd like to improve the image that's shown during a drag. Currently I just get the subviews of my NSTableCellView subclass, but I don't get the background that's drawn in -drawBackgroundInRect: of my NSTableRowView subclass. The documentation seems to suggest that one should override -draggingImageComponents in the NSTableCellView subclass, but it seems never to be called.
>
> Can anyone shed any light on this? Should I be overriding something in the NSTableRowView subclass instead? Is there a switch I need to flick to get -draggingImageComponents to be called?
>
> Cheers,
>
> Martin
>
>
>
>
>
>
_______________________________________________
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