Re: Custom drag image for NSTableView selections
Re: Custom drag image for NSTableView selections
- Subject: Re: Custom drag image for NSTableView selections
- From: email@hidden
- Date: Fri, 12 Jul 2013 09:35:04 +0900
On Jul 12, 2013, at 8:46 AM, Graham Cox <email@hidden> wrote:
> I'd suggest just badging the drag image with the number of items being dragged if it's more than what is visible (or badge it anyway, so the user gets used to the badge). The latest drag API has a way to collapse the drag with an animation to help reinforce this idea as well.
The badge is a nice idea and would be a familiar paradigm for users!
However, based on the way I have simply put the row selection indexes NSIndexSet into NSData and into the pasteboard, the API as I see it at the moment (using NSDraggingSession property draggingFormation ) may not work for me without some additional work.
I wasn't really wanting to put the represented objects of my rows on to the pasteboard, since NSView and NSTableView do a lot of the dragging API work already, it may have to be a feature I handle later, it looks like a lot of work for now, and the API seems spread out amongst a lot of different classes I am not familiar with… :(
>
> If you build a drag image from the entire selection no matter how large, the image will be often too large to be usable.
Most definitely.
>
> --Graham
>
>
> On 12/07/2013, at 12:37 AM, email@hidden wrote:
>
>> Granted I will need to also do some handling of excessively large number of selected rows and make some visual indication in that is more than can reasonably be displayed.
>> Happy to hear any guidance on this from anybody who has implemented something similar before. (Caveats and gotchas please )
>
_______________________________________________
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