Re: NSPasteboard type for InDesign
Re: NSPasteboard type for InDesign
- Subject: Re: NSPasteboard type for InDesign
- From: Kyle Sluder <email@hidden>
- Date: Mon, 17 Sep 2012 09:27:43 -0700
On Sep 17, 2012, at 8:59 AM, Chris Paveglio <email@hidden> wrote:
> I'm trying to build a little app to drag and drop image files (or any files really) onto an InDesign document. What is the correct file type to use? NSURL or a string with the file path?
Can't answer that for sure. It depends on what drag types InDesign accepts, if anything. In general, when dragging files, you want to use NSURLs.
> I've tried both but neither work for me.
InDesign might simply not support dropping files onto it.
> I'm sure I might have another problem with my drag and drop implementation, but I want to clarify that I am using the right file type so I can eliminate that as one of my problems.
> BTW any example code for DnD appreciated! ;-)
There should be a bunch on developer.apple.com, but make sure it's using the new-style NSPasteboardWriting API.
--Kyle Sluder
_______________________________________________
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