Instance Method


Invoked when the image is released, allowing the receiver to agree to or refuse drag operation.


- (BOOL)prepareForDragOperation:(id<NSDraggingInfo>)sender;



The object sending the message; use it to get details about the dragging operation.

Return Value

YES if the receiver agrees to perform the drag operation and NO if not.


This method is invoked only if the most recent draggingEntered: or draggingUpdated: message returned an acceptable drag-operation value.

If you want the drag items to animate from their current location on screen to their final location in your view, set the sender object’s animatesToDestination property to YES in your implementation of this method.

See Also

Managing a Dragging Session After an Image Is Released

- performDragOperation:

Invoked after the released image has been removed from the screen, signaling the receiver to import the pasteboard data.

- concludeDragOperation:

Invoked when the dragging operation is complete, signaling the receiver to perform any necessary clean-up.