• 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
NSDragOperationMove type drag&drop in outline views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDragOperationMove type drag&drop in outline views


  • Subject: NSDragOperationMove type drag&drop in outline views
  • From: Robert Goldsmith <email@hidden>
  • Date: Wed, 15 Sep 2004 22:09:12 +0100

Hi :)

Ok, maybe I am blind but, although Outlineviews seem to do most of the rest for you, drag&drop wise, they don't seem to request the removal of the items that have just been dragged to a new location.

Currently, when requested to save the items to the pasteboard(outlineView:writeItems:toPasteboard:), I do. I then validate the drop point (outlineView:validateDrop:proposedItem:proposedChildIndex:) with a return of NSDragOperationMove, as this is what I want to do, then when asked to accept the drop (outlineView:acceptDrop:item:childIndex:), I do so, inserting the pasteboard items where requested. But the old copies of the items are not removed so I end up with 2 copies of my items.

Maybe I have misread the docs and I actually need to keep track of this myself (and, if so, how, when I am simply handed an array of items which could have come from anywhere...) or maybe I need to implement another dataSource or delegate method, but I can't find anything that sounds sensible :(

Could someone please put me out of my misery? :)

Thank you

Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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: NSDragOperationMove type drag&drop in outline views
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: How can my program be notified when a NSImageView is populated with a NSImage?
  • Next by Date: Re: mutating custom-class, becomes NSArray
  • Previous by thread: Re: How can my program be notified when a NSImageView is populated with a NSImage?
  • Next by thread: Re: NSDragOperationMove type drag&drop in outline views
  • Index(es):
    • Date
    • Thread