Class

NSDraggingImageComponent

A single object in a dragging item.

Declaration

@interface NSDraggingImageComponent : NSObject

Overview

An array of NSDraggingImageComponent instances are composited together to create the dragging image for an NSDraggingItem. NSDraggingImageComponent instances can simply be considered as named images with a location used by an NSDraggingItem instance.

Topics

Creating a Dragging Image Component

- initWithKey:

Initializes and returns a dragging image component with the specified key.

+ draggingImageComponentWithKey:

Creates and returns a dragging image component with the specified key.

Dragging Image Component

key

The unique name of this image component instance.

Dragging Image Contents

contents

An object providing the image contents of the component.

frame

The coordinate space is the bounds of the parent dragging item.

Constants

NSDragImage Component Keys

These constants are used by the initWithKey:, draggingImageComponentWithKey: methods and the key property.

Relationships

Inherits From

See Also

Drag Sources

NSDraggingSource

A set of methods that are implemented by the source object in a dragging session.

NSDraggingItem

A single dragged item within a dragging session.

NSDraggingSession

The encapsulation of a drag-and-drop action that supports modification of the drag while in progress.