Modifying the dragged image during a drag / drop operation
-
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 -
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 <pat...> 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
> -
crap totally didn't finish my message when that sent.
anyway long story short i would think you would be able to reconstruct the
drag there using the information in sender
hope that helps
+cts
On 11/29/06, Clint Shryock <cts3e1...> wrote:>
> 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 <pat...> 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
>>
>
>


