Re: NOT Drag and Drop onto the Desktop
Re: NOT Drag and Drop onto the Desktop
- Subject: Re: NOT Drag and Drop onto the Desktop
- From: Jim Correia <email@hidden>
- Date: Wed, 12 Dec 2001 13:26:10 -0500
On Wednesday, December 12, 2001, at 01:11 PM, Brian Webster wrote:
It "should" work in the sense that that's the way it's _supposed_ to
work, but it doesn't due to the bug in Apple's Cocoa->Carbon dragging
code. It does work correctly in Cocoa->Cocoa drags, but not
Cocoa->Carbon drags, and the option to differentiate between in-app and
out-app drags doesn't even exist in Carbon->Carbon drags, unless I'm
just missing how to do that in the Carbon drag manager.
When you put an item in the drag in carbon, you can set flags on it.
One of them determines whether it is a sender only drag or not.
I know of one bug where apps can see other apps sender only drags in
Carbon, and we've filed a bug against the OS. This may or may not be
related.
Dragging to non-Finder apps seems to be prevented; Finder
windows (and the Desktop) seem to be the exception. Is
this a bug or a feature?
Definitely a bug. I was able to drag a string into a couple other
Carbon apps (Script Debugger and BBEdit) from a test Cocoa app, even
returning NSDragOperationNone when the local flag is false. That
shouldn't happen.
It would appear not. Someone should file a bug.
Jim