Re: Handling a File Drag to my Window
Re: Handling a File Drag to my Window
- Subject: Re: Handling a File Drag to my Window
- From: Rob Keniger <email@hidden>
- Date: Wed, 23 Sep 2009 13:11:35 +1000
On 23/09/2009, at 12:48 PM, Peter Zegelin wrote:
I would like to show some sort of visual feedback. I tried
subclassing the content view of the window thinking it would
automatically hilite, but I can't get it to. Note I set focus ring
to default in IB for this. Also the drag icon doesn't update to show
a '+' symbol.
To change the appearance of a view in response to dragging operations,
you should implement the -draggingEntered:, -draggingUpdated: and -
draggingExited: protocol methods.
To make the plus sign appear next to the cursor, you need to return
NSDragOperationCopy as the NSDragOperation from the -draggingEntered:
and/or -draggingUpdated: protocol methods. Note that this is only
appropriate for dragging events where you're actually copying the
content.
--
Rob Keniger
_______________________________________________
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