---
title: "imageBrowser(_:writeItemsAt:to:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/imagebrowser(_:writeitemsat:to:)"
---

# imageBrowser(_:writeItemsAt:to:)

Signals that a drag should begin.

## Declaration

```swift
func imageBrowser(_ aBrowser: IKImageBrowserView!, writeItemsAt itemIndexes: IndexSet!, to pasteboard: NSPasteboard!) -> Int
```

## Parameters

- `aBrowser`: An image browser view.
- `itemIndexes`: The indexes of the items that should be dragged.
- `pasteboard`: The pasteboard to copy the items to.

## Return Value

Return Value The number of items written to the pasteboard.

## Discussion

Discussion This method is optional. It is invoked after Image Kit determines that a drag should begin, but before the drag has been started.
