• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: drag & drop and the "+" sign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >drag & drop and the "+" sign (From: Herbert <email@hidden>)

  • Prev by Date: Re: drag & drop and the "+" sign
  • Next by Date: Re: unreliability of NSWorkspace selectFile
  • Previous by thread: Re: drag & drop and the "+" sign
  • Next by thread: sudo shutdown -c now
  • Index(es):
    • Date
    • Thread