Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NOT Drag and Drop onto the Desktop



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


References: 
 >Re: NOT Drag and Drop onto the Desktop (From: Brian Webster <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.