• 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: Changing draggedImage in mid-drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing draggedImage in mid-drag


  • Subject: Re: Changing draggedImage in mid-drag
  • From: Brian Webster <email@hidden>
  • Date: Sun, 16 Sep 2001 23:53:06 -0500

On Sunday, September 16, 2001, at 03:44 PM, cocoa-dev-
email@hidden wrote:

I expect to keep banging away at this problem, but I'm
wondering whether (a) I'm missing something obvious that
would make drawing on the draggedImage work, (b) I need to
be trying a different approach, or (c) I'm attempting
something that simply wasn't meant to be done, in which
case I need to roll my own kind of dragging protocol.

I don't know for sure, but I'm pretty sure that there's no API to do this. Your attempts to draw changes into the image are probably unsuccessful because of the presence of a layer that is beneath both the Carbon and Cocoa drag managers. To change the image in mid-drag, you'd need to be able to access the window that the core drag manager uses, and there is no API currently available to access this window. Send e-mail to cocoa-
email@hidden if you think this would be a good feature to add in a future release.

So, it'll probably be necessary to roll your own dragging stuff in order to do this. A quick search in the list archives (try the Omni list archives - their search is better) will get you some info on how to make a borderless transparent window which you can use as your own dragging window.

--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster


  • Follow-Ups:
    • Re: Changing draggedImage in mid-drag
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: A first stab at a schema (Was: Would Any Developers Use This? )
  • Next by Date: NSBezierPath buggy?
  • Previous by thread: Re: Changing draggedImage in mid-drag
  • Next by thread: Re: Changing draggedImage in mid-drag
  • Index(es):
    • Date
    • Thread