• 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: NSOutlineView drag and drop problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView drag and drop problem


  • Subject: Re: NSOutlineView drag and drop problem
  • From: Dave DeLong <email@hidden>
  • Date: Thu, 10 Jun 2010 00:27:37 -0600

What about a category on NSPasteboard that uses an associated object to store stuff in the NSDraggingInfo?

Dave

Sent from my iPhone

On Jun 10, 2010, at 12:12 AM, Graham Cox <email@hidden> wrote:

> I'm implementing drag and drop in an outline view.
>
> I implement –outlineView:validateDrop:proposedItem:proposedChildIndex: to return one of several drag operation constants depending on combinations of source, destination and the source mask. For example the operation can be a move or a copy depending on certain things, but <option> modifier key always forces a copy. That works and the cursor badging correctly reflects the intentions of the drag.
>
> In –outlineView:acceptDrop:item:childIndex: I can work out much the same set of conditions as above and mostly do the right thing, but since a move or a copy is equally likely, I need a way to determine what the last drag operation returned during validation actually was. There doesn't seem to be a way to do this by requesting it from any of the parameters passed to that method. How can I get that?
>
> I could easily store the last value I returned in an ivar in my controller but it seems that there should be a way to just ask the drag system for it without this being necessary.
>
>
> --Graham
>
>
> _______________________________________________
>
> 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
_______________________________________________

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

References: 
 >NSOutlineView drag and drop problem (From: Graham Cox <email@hidden>)

  • Prev by Date: NSOutlineView drag and drop problem
  • Next by Date: Creating a NSTableView cell the "iPhone way"
  • Previous by thread: NSOutlineView drag and drop problem
  • Next by thread: Re: NSOutlineView drag and drop problem
  • Index(es):
    • Date
    • Thread