On Dec 2, 2011, at 3:58 PM, Eric Smith wrote: > I want to declare a drag type that the finder will recognize, but that can be > used for other destinations as well, like mail. Right now, my users have to > do option+drag for dragging files to the finder, in which case I call [NSView > dragPromisedFilesOfType:..], and if they want to drag to something like mail > they just drag, in which case I call [pboard declareTypes:...]. I can't > figure out how to declare a type that will cause the finder to request the > data. How the heck do I do this? All the sample code I've seen either drags > to some application, or drags to the finder.. they're not combined.
You can provide different data flavors in the drag, one of which is the promised-files type that the Finder looks for. -dragPromisedFilesOfType: is a convenience method that creates a drag that just has the promised-files type in it; I think you’ll have to abandon it and create the drag yourself, declaring the promise type explicitly. —Jens_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com