Re: FCP: dragging image from bin to NSImageView?
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Hi Paul, Thanks for the info... steve On Jun 18, 2010, at 3:52 PM, Paul Schneider wrote: Hi Steve, - Paul On Jun 18, 2010, at 3:12 PM, Steve Christensen wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... Hmmm... too bad. We're going the NSImageView route because we're modifying what gets displayed in addition to wanting to be able to track drops on the view. We were hoping to be able to add bins into the mix so that we could cover all image sources, but it sounds like that's not going to happen. I did try a version with the image reference parameter but it didn't look like the plugin was being notified (-parameterChanged:) after an image was dropped onto it (FCP 6.x), which we kinda need to know. The data that FCP puts on the pasteboard isn't a reference to a file on disk; it's an internal representation of the FCP objects in the bin. You'll have to register for custom drag types. I don't know off the top of my head what we put on the pasteboard. It would be nice if it were XML, because then your plugin could read it. But I suspect it's a private binary format. I'm pretty sure you'll have to use FxPlug's standard image reference parameters to get a reference to something in an FCP bin. My plugin has a custom parameter that includes a NSImageView configured for editing (drag&drop). If I drag an image from the desktop, the image is accepted and appears in the view, as expected. If I first drag the same image into a bin then drag from the bin onto the image view, the panel containing all the plugin's parameters highlights (darkened border) but the image view doesn't accept the image. Do I need to be aware of some other pasteboard types beyond what NSImageView knows about; is FCP just allowing bin image drags to the built-in image parameter; or is something else going on? steve This email sent to site_archiver@lists.apple.com
participants (1)
-
Steve Christensen