• 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
Making Tiger Look Pretty in Drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making Tiger Look Pretty in Drag


  • Subject: Making Tiger Look Pretty in Drag
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 15 Oct 2007 15:56:11 -0400

List:

  I'm sure a number of you have wondered the same thing (because I see
many unanswered instances of this issue in the archives):

1 - How can you change a drag image, mid-drag, in response to
arbitrary modifier flag changes and possibly other events?
2 - Is it possible to animate the drag image as in Dashboard's
drag-from-dock action?

  Searching the archives and the web at large gives me very little
hope of any supported way to achieve this without some nasty code.
There is an answer in the archives (
www.cocoabuilder.com/archive/message/cocoa/2006/11/29/175207 ) which
suggests you can replace the image in the dragging info. Unfortunately
it doesn't say how and the documentation suggests you cannot.

  While researching the animating part, I found this:
www.cocoadev.com/index.pl?AnimatingDragImages which reveals yet
another unsolved problem. A suggested solution ( overriding
-draggedImage:movedTo: and changing the image ) does not work either.
The last modification was in '05 and the project depicted on the page
does not currently seem to implement this feature (I just checked).

  Can we solve this, please? I mean, seriously ... ;-) If I've missed
something fundamental here, God how I'd love someone to embarrass me
publicly with a simple solution. :-)

  I'm coming to the conclusion that the suggestion on the
above-mentioned wiki page is still the right one for one's own apps
(despite the last suggestion on the page to the contrary). I'm
thinking of the following:

1 - Returning an empty image (returning nil upsets Cocoa).
2 - Implementing -draggedImage:began/movedTo/ended... to message my
Pretty Drag mechanism and update it.
3 - Respond (via my Pretty Drag mechanism) to these update messages by
positioning a transparent window with a view that renders my animation
any damned way I please.

  Anyone got a problem with that? ;-)

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Making Tiger Look Pretty in Drag
      • From: David Masters <email@hidden>
  • Prev by Date: Re: Binding NSPopupButton crashes
  • Next by Date: Re: Binding NSPopupButton crashes
  • Previous by thread: Re: Cocoa-dev Digest, Vol 4, Issue 1015
  • Next by thread: Re: Making Tiger Look Pretty in Drag
  • Index(es):
    • Date
    • Thread