• 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: cocoa-dev digest, Vol 2 #2903 - 15 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #2903 - 15 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #2903 - 15 msgs
  • From: Julien Guimont <email@hidden>
  • Date: Mon, 8 Sep 2003 23:01:32 -0400

Hello,

Remember to sleeping power of the doc!

(1) Is there a way to manipulate a drag image after the drag has begun;
move it, redraw it, etc.? I've searched the archives and can't find
very much other than it's not possible. I want to snap the image to
locations in the destination view during the drag and make minor
changes to the image.

Look at NSDraggingInfo protocol for:
slideDraggedImageTo:

- (void) slideDraggedImageTo: (NSPoint) aPoint
Slides the image to aPoint , a specified location in the screen coordinate system. This method can be used to snap the image down to a particular location. It should only be invoked from within the destination's implementation of prepareForDragOperation: -in other words, after the user has released the image but before it is removed from the screen.

(2) Is there a way to programmatically cancel a drag and make the drag
image disappear after the drag has begun? If I can't do (1) above, I'd
like to cancel the drag after receiving dragEntered: and take over
manually.


It is not mac-like to do such a thing... the image should slide back to it original position if not accepted by to receiver view. It must be release (mouse up) to do so.

I hope this can help!

Bye

Julien Guimont
www.juggysoft.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drag image questions
      • From: Keith Renz <email@hidden>
  • Prev by Date: Re: NSUserDefaults causing me fits
  • Next by Date: MiscKit
  • Previous by thread: Re: how to pause
  • Next by thread: Re: Drag image questions
  • Index(es):
    • Date
    • Thread