Re: DnD International No symbol
Re: DnD International No symbol
- Subject: Re: DnD International No symbol
- From: Kyle Sluder <email@hidden>
- Date: Wed, 16 Jun 2010 19:11:02 -0700
On Wed, Jun 16, 2010 at 6:55 PM, Tony Romano <email@hidden> wrote:
> Briefly, in a DnD operation all the nodes selected need to be siblings of each other. During validateDrop I check for this and it calculates it just fine. However, I need to set the DnD image to something indicating this is not allowed, I thought using the International NO symbol made sense but it is not defined as one of the NSDragOperation... flags. So I am thinking either this is not HIG compliant or it is and I just need to supply my own. I know I have seen other apps do it but it's doesn't been it's HIG compliant.
I believe that's a Carbon thing; there is also no standard "not
allowed" cursor. Just return NSDragOperationNone and let the
slide-back animation do its job.
If you want to explain to the user why they can't drag, maybe you
could use a tooltip? Query the draggingInfo in -draggingUpdated: and
use it to position a borderless window that describes why the
operation can't be done.
--Kyle Sluder
_______________________________________________
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