- Package:
- com.apple.yellow.application
The NSDraggingInfo protocol declares methods that supply information about a dragging session (see the NSDraggingDestination protocol for definitions of dragging terms). NSDraggingInfo methods are designed to be invoked from within a class's implementation of NSDraggingDestination informal protocol methods. The Application Kit automatically passes an object that conforms to the NSDraggingInfo protocol as the argument to each of the methods defined by NSDraggingDestination. NSDraggingInfo messages should be sent to this object; you never need to create a class that implements the NSDraggingInfo protocol.
- Dragging-session information
- draggingSource
- draggingSourceOperationMask
- draggingDestinationWindow
- draggingPasteboard
- draggingSequenceNumber
- draggingLocation
- Image information
- draggedImage
- draggedImageLocation
- Sliding the image
- slideDraggedImageTo
public abstract NSImage draggedImage()
See Also: draggedImageLocation
public abstract NSPoint draggedImageLocation()
See Also: draggedImage
public abstract NSWindow draggingDestinationWindow()
public abstract NSPoint draggingLocation()
See Also: draggedImageLocation
public abstract NSPasteboard draggingPasteboard()
public abstract int draggingSequenceNumber()
public abstract Object draggingSource()
null
if the
source isn't in the same application as the destination. The
dragging source implements methods from the NSDraggingSource informal protocol.public abstract int draggingSourceOperationMask()
Option | Meaning |
DragOperationCopy | The data represented by the image can be copied. |
DragOperationLink | The data can be shared. |
DragOperationGeneric | The operation can be defined by the destination. |
DragOperationPrivate | The operation is negotiated privately between the source and the destination. |
DragOperationAll | Combines all the above. |
If the source does not permit any dragging operations, this
method should return DragOperationNone
.
If the user is holding down a modifier key during the dragging session and the source doesn't prohibit modifier keys from affecting the drag operation (through its ignoreModifierKeysWhileDragging method), then the operating system combines the dragging operation value that corresponds to the modifier key (see the descriptions below) with the source's mask using the C bitwise AND operator.
The modifier keys are associated with the dragging operation options shown below:
Modifier Key | Dragging Option |
Control | DragOperationLink |
Alternate | DragOperationCopy |
Command | DragOperationGeneric |
public abstract void slideDraggedImageTo(NSPoint aPoint)