draggedImage:endedAt:operation:

Invoked after the dragging destination has been given a chance to operate on the data represented by the image.

Declaration

- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation

Parameters

anImage

The dragged image.

aPoint

The point locating the image’s origin in the screen coordinate system when it was released.

operation

An integer constant that indicates the operation performed by the destination.

Overview

This method is invoked after the dragged image (anImage) has been released and the dragging destination has been given a chance to operate on the data it represents. This method provides the source object with an opportunity to respond to either a successful or a failed dragging session. For example, if you are moving data from one location to another, you could use this method to make the source data disappear from its previous location, if the dragging session is successful, or reset itself to its previous state, in the event of a failure.

See Also

Responding to Messages During a Dragging Session

- draggedImage:beganAt:

Gives the source object an opportunity to respond to the initiation of a dragging session.

- draggedImage:movedTo:

Informs the dragging source when a dragged image moves to a new screen coordinate.

- draggedImage:endedAt:deposited:

Invoked after the dragging destination has been given a chance to operate on the data represented by the image.