O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required