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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com