Re: NSTableView
Re: NSTableView
- Subject: Re: NSTableView
- From: Rob Petrovec <email@hidden>
- Date: Sat, 20 Apr 2019 02:17:11 -0600
Because dragImage is the old (and likely soon to be deprecated), single image
style drag setup and the pasteboardWriter version is the modern multi-image
drag set up. Ever notice how when you drag a file around in the Finder the
drag image will morph as the drag moves between windows with different view
styles etc? Or how the drag images change positions relative to the mouse as
you drag multiple files around. That is the multi-image drag setup. Single
image drags can’t do that.
—Rob
> On Apr 20, 2019, at 12:14 AM, Arved von Brasch <email@hidden> wrote:
>
> Hello list,
>
> Anyone know if it is intentionally the case that NSTableView doesn’t call
>
> dragImageForRows(with dragRows: IndexSet, tableColumns: [NSTableColumn],
> event dragEvent: NSEvent, offset dragImageOffset: NSPointPointer) -> NSImage
>
> if you implement
>
> func tableView(NSTableView, pasteboardWriterForRow: Int) ->
> NSPasteboardWriting?
>
> instead of
>
> func tableView(NSTableView, writeRowsWith: IndexSet, to: NSPasteboard) -> Bool
>
> I can’t see a reason for it not to in the documentation, but it doesn’t in my
> code.
>
> Kind regards,
> Arved
> _______________________________________________
>
> 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
References: | |
| >NSTableView (From: Arved von Brasch <email@hidden>) |