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 Tuesday, December 11, 2001, at 11:37 AM, Don McConnell wrote:

Hello ...

bw> The draggingSourceOperationForLocal: _should_ work,
> but it looks like there's a Carbon bug which prevents
> it from working properly. I did a couple tests, and
> it properly prevented dragging to another Cocoa app,
> but it doesn't do it for Carbon apps.

I knew I left out a detail: My application is Cocoa (and
I have draggingSourceOperationForLocal: implemented). So
I'm in "should work" territory, no?

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.

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.

But shouldn't draggingSourceOperationForLocal: also prevent
dragging to the Dock? Or is the Dock "local" to every app
(which would make some sense ... although it complicates
the process of restricting a drag to a window)?

The Trash seems to ignore both the type and the drag operation in both Carbon and Cocoa apps. It looks like it highlights when you drag _anything_ over it. Also buggy...

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


References: 
 >Re: NOT Drag and Drop onto the Desktop (From: Don McConnell <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.