• 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-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)


  • Subject: Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
  • From: Andrei Tchijov <email@hidden>
  • Date: Tue, 6 Dec 2005 22:49:39 -0500

Hurray. It does. I was returning NSDragOperationEvery and was hoping that it will cover all bases. Now how I can implement behavior similar to Finder. Do move (no green plus) by default and copy (green plus) when user holds "option" key? Should I do [[ NSApplication sharedApplication ] currentEvent ] and then check for the "option" key?

On Dec 6, 2005, at 10:40 PM, Nick Zitzmann wrote:


On Dec 6, 2005, at 8:27 PM, Andrei Tchijov wrote:

When doing drag-and-drop inside NSOutlineView, who is responsible for showing "green plus sign" over dragged image and do I need to do anything special to make it happen? It looks like it is "drop destination" responsibility. Is

- (unsigned int)outlineView:(NSOutlineView*)olv validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex: (int)childIndex

right place to deal with it?

Correct. If the method returns NSDragOperationCopy, then the green plus will show up.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________
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
  • Follow-Ups:
    • Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
      • From: Nick Zitzmann <email@hidden>
References: 
 >Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView) (From: Andrei Tchijov <email@hidden>)
 >Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView) (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How do I
  • Next by Date: Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
  • Previous by thread: Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
  • Next by thread: Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
  • Index(es):
    • Date
    • Thread