• 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: Tue, 11 Dec 2001 10:56:43 -0600

On Monday, December 10, 2001, at 05:16 PM, Don McConnell wrote:

However, creating a drag type that the Finder doesn't want
seems (no offense) a thoroughly unsatisfying solution.
Surely there are legitimate circumstances calling for Cocoa-
defined drag types where dragging off-window is undesirable.
(I foresee one in another project.) Isn't this the whole
purpose for "draggingSourceOperationForLocal:" (which
another respondent suggested, although my original message
reports having tried the method without success)?

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 did a brief browsing of the Carbon drag manager docs, and it seems that this ability is not available to Carbon applications at all. Definitely material for a bug report, though.

So, it seems for now that dragging a private type is the only way to guarantee that drops won't happen in Carbon apps. However, if you're _only_ using it as a private placeholder, using a standard Cocoa drag type doesn't seem to make much sense, to me at least.

(By the way: I just noticed that if I drag one of my cards
to the Trash, the Trash highlights and "accepts" the card
(although the icon doesn't change to "full"), removing the
card from the game without even leaving a clipping to
remember it by. Is this the same problem as dropping
clippings onto the Finder, or is this a whole other anomaly
to sort out?)

This is different, since the trash is now controlled by the Dock and not the Finder. Dragging to the trash isn't completely implemented yet under OS X. Your drag source will get notification of a delete operation, but the trash still doesn't make the clippings correctly, either from Cocoa or Carbon apps.

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


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

  • Prev by Date: Re: notification AFTER dockMenu is shown
  • Next by Date: Re: Re(2): Strange crash, CFBundle*
  • 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