• 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: Modifying the dragged image during a drag / drop operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying the dragged image during a drag / drop operation


  • Subject: Re: Modifying the dragged image during a drag / drop operation
  • From: "Clint Shryock" <email@hidden>
  • Date: Wed, 29 Nov 2006 10:21:08 -0600

Pat-

a dragging destination should call

- (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender


when a user enters / exits the window that is receiving the drag operation.
I believe this is where you may specify "NSDragOperationCopy" or
"NSDragOperationMove" etc.
at that point you may be able to re-construct the dragging operation with a
new image from sender with
[self dragImage:newImage
at: [sender draggingLocation]
- (NSPoint)draggingLocation
- (NSPoint)draggingImageLocation
- (NSPasteboard *)draggingPasteboard







On 11/29/06, Pat Homelvig <email@hidden> wrote:

Hello,

Is there any way that you can change the dragged image during a
drag / drop operation?  I would like to change the image as the user
enters / exits the window that is receiving the drag operation.

I know you can get information about the image during the drag
operation, but haven't found any way to modify that image.  Not sure
it can be done, but thought I'd ask.

Thanks in advance.

Pat

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Modifying the dragged image during a drag / drop operation
      • From: "Clint Shryock" <email@hidden>
References: 
 >Modifying the dragged image during a drag / drop operation (From: Pat Homelvig <email@hidden>)

  • Prev by Date: [NSPasteboard setPropertyList:forType:] is buggy...
  • Next by Date: Re: Noob question regarding Cocoa objects.
  • Previous by thread: Modifying the dragged image during a drag / drop operation
  • Next by thread: Re: Modifying the dragged image during a drag / drop operation
  • Index(es):
    • Date
    • Thread