• 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: NOT Drag and Drop onto the Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NOT Drag and Drop onto the Desktop


  • Subject: Re: NOT Drag and Drop onto the Desktop
  • From: Brian Webster <email@hidden>
  • Date: Wed, 12 Dec 2001 12:11:55 -0600

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


  • Follow-Ups:
    • Re: NOT Drag and Drop onto the Desktop
      • From: Jim Correia <email@hidden>
References: 
 >Re: NOT Drag and Drop onto the Desktop (From: Don McConnell <email@hidden>)

  • Prev by Date: Re: Quick NSTimer question..
  • Next by Date: Re: NOT Drag and Drop onto the Desktop
  • Previous by thread: Re: NOT Drag and Drop onto the Desktop
  • Next by thread: Re: NOT Drag and Drop onto the Desktop
  • Index(es):
    • Date
    • Thread