Name

NSDraggingInfo — Mac OS X 10.0

Synopsis

This protocol declares methods that are used to provide an interface to objects that represent dragging sessions. When a dragging session begins, an object that conforms to this protocol is automatically created, and is the sender of all messages to the destination object, which implements the methods outlined in the NSDraggingDestination protocol. NSDraggingInfo exists to publish the interface for this object that represents the dragging operation, and as such developers never need to implement these methods.

@protocol NSDraggingInfo
                                  // Instance Methods
   - (NSWindow *)draggingDestinationWindow;
   - (NSDragOperation)draggingSourceOperationMask;
   - (NSPoint)draggingLocation;
   - (NSPoint)draggedImageLocation;
   - (NSImage *)draggedImage;
   - (NSPasteboard *)draggingPasteboard;
   - (id)draggingSource;
   - (int)draggingSequenceNumber;
   - (void)slideDraggedImageTo:(NSPoint)screenPoint;
   - (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination;
@end

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.