---
title: "draggingImageComponentWithKey:"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsdraggingimagecomponent/draggingimagecomponentwithkey:"
---

# draggingImageComponentWithKey:

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

## Declaration

```occ
+ (NSDraggingImageComponent *) draggingImageComponentWithKey:(NSDraggingImageComponentKey) key;
```

## Parameters

- `key`: The key.

## Return Value

Return Value A dragging image component with the specified key.

## See Also

### Creating a Dragging Image Component

- [init(key:)](appkit/nsdraggingimagecomponent/init(key:).md)
