Initiates a dragging operation from the receiver, allowing the user to drag arbitrary data with a specified icon into any application that has window or view objects that accept dragged data.
Original signature is '- (void)dragImage:(NSImage *)anImage at:(NSPoint)imageLoc offset:(NSSize)mouseOffset event:(NSEvent *)theEvent pasteboard:(NSPasteboard *)pboard source:(id)sourceObject slideBack:(BOOL)slideBack'
Available in Mac OS X v10.0 and later.
|C#||Visual Basic||Visual C++|
- anImage (NSImage)
- The NSImage object to be dragged.
- imageLoc (NSPoint)
- The location of the image’s lower-left corner, in the receiver’s coordinate system. It determines the placement of the dragged image under the cursor. When determining the image location you should use the mouse down coordinate, provided in theEvent, rather than the current mouse location.
- mouseOffset (NSSize)
- This parameter is ignored.
- theEvent (NSEvent)
- The left mouse-down event that triggered the dragging operation (see discussion below).
- pboard (NSPasteboard)
- The pasteboard that holds the data to be transferred to the destination (see discussion below).
- sourceObject (Id)
- An object that serves as the controller of the dragging operation. It must conform to the NSDraggingSource informal protocol and is typically the receiver itself or its NSWindow object.
- slideBack (Boolean)
- A Boolean that determines whether the drag image should slide back if it’s rejected. The image slides back to imageLoc if slideBack is YES and the image isn’t accepted by the dragging destination. If NO the image doesn't slide back.
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)