• 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: NSPasteboard type for InDesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSPasteboard type for InDesign (From: Chris Paveglio <email@hidden>)

  • Prev by Date: NSPasteboard type for InDesign
  • Next by Date: Re: NSPasteboard type for InDesign
  • Previous by thread: NSPasteboard type for InDesign
  • Next by thread: Re: NSPasteboard type for InDesign
  • Index(es):
    • Date
    • Thread