• 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
Looking for Drag and Drop samples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for Drag and Drop samples


  • Subject: Looking for Drag and Drop samples
  • From: Dave DeLong <email@hidden>
  • Date: Sat, 18 Apr 2009 15:52:02 -0600

Hey everyone,

I'm working on some drag and drop stuff, and have reached an impasse. Currently, I've got a basic master-detail view, where I can drag and drop to rearrange the groups in the master outline view. What I'd now like is to be able to drop items from the detail view onto one of the group items to copy it into that group (just like dragging an email into a new folder in Mail.app, or dragging a song into a playlist in iTunes).

I tried adding the type of the dragged item (a simple NSStringPboardType) to the outline view's regsiterForDraggedType's array, but I'm still not entirely sure what all the various delegate methods are doing. I managed to get it working for rearranging, but I'm now looking for somewhere that has a clear explanation of what the delegate methods are, when they're fired, why they're fired, and maybe some sample code to go with it.

I've taken a look at the Drag and Drop outline view in the sample code, and also the Drag and Drop guide in the docs, but I'm really looking for something that could explain this step by step.

Any pointers?

Thanks!

Dave DeLong
_______________________________________________

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


  • Follow-Ups:
    • Re: Looking for Drag and Drop samples
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSSavePanel and file formats
  • Next by Date: [MEET] Amsterdam CocoaHeads Wed, April 22
  • Previous by thread: Re: how to get the windows ‘s coordinate
  • Next by thread: Re: Looking for Drag and Drop samples
  • Index(es):
    • Date
    • Thread