• 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: Determining an inter-application drag source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining an inter-application drag source


  • Subject: Re: Determining an inter-application drag source
  • From: Steve Christensen <email@hidden>
  • Date: Thu, 25 Mar 2010 16:22:54 -0700

I'm curious why you need to know where the drag originated since it generally shouldn't matter. Do you have to do some extra work in one case? And what happens if you see a drag from another application?


On Mar 25, 2010, at 7:55 AM, Jeffrey J. Early wrote:

Is there any way to determine the source of a drag operation outside your own application? For example, if I'm set to receive NSFilenamesPboardType, then I'd like to distinguish between the Finder and Aperture as drag sources.

I had thought I'd seen a solution to this at one point, but can't seem to find anything. The draggingSource in <NSDraggingInfo> is set to nil when the source is an external application. The pasteboard doesn't seem to guarantee any that information, although some sources will occasionally have unique pasteboard types that might distinguish them, but only as an exception.

_______________________________________________

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: Determining an inter-application drag source
      • From: Matt Gough <email@hidden>
References: 
 >Determining an inter-application drag source (From: "Jeffrey J. Early" <email@hidden>)

  • Prev by Date: Re: Prevent NSWindow from hiding with app
  • Next by Date: Re: Sync .DS_Store files
  • Previous by thread: Determining an inter-application drag source
  • Next by thread: Re: Determining an inter-application drag source
  • Index(es):
    • Date
    • Thread