Re: drag & drop and the "+" sign
Re: drag & drop and the "+" sign
- Subject: Re: drag & drop and the "+" sign
- From: Justin Anderson <email@hidden>
- Date: Tue, 7 Mar 2006 01:16:15 -0500
So you've got an NSBox with custom drag & drop behavior, and you want
the drag cursor to always show a + sign?
Check out Apple's documentation on Receiving Drag Operations [1]. You
want -draggingEntered: to return NSDragOperationCopy whenever you'd
like to see a + sign.
[1] <http://developer.apple.com/documentation/Cocoa/Conceptual/
DragandDrop/Tasks/acceptingdrags.html>
Justin Anderson
On Mar 7, 2006, at 12:49 AM, Herbert wrote:
I've been trying to implement drag & drop on an NSBox.
By taking one of apple's samples based on the NSImageView, I
managed to get it to work -mostly.
The only thing that escapes me is when you drag the item onto the
box you don't get the green circle with the + sign in it, whereas
you do with Apple's sample.
Is there something I've missed? Or does anyone have code they've
used with NSBox that does this?
I'd love to see it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden