<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOutlineViewDataSource/outlineView(_:updateDraggingItemsForDrag:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSOutlineViewDataSource(im)outlineView:updateDraggingItemsForDrag:"
  },
  "title" : "outlineView(_:updateDraggingItemsForDrag:)"
}
-->

# outlineView(_:updateDraggingItemsForDrag:)

Implement this method to enable the table to update dragging items as they are dragged over the view.

```
@MainActor optional func outlineView(_ outlineView: NSOutlineView, updateDraggingItemsForDrag draggingInfo: any NSDraggingInfo)
```

## Parameters

`outlineView`

The outline view in which the drag occurs.

`draggingInfo`

The dragging info object.

## Discussion

Implementing this method is required for multi-image dragging. A typical implementation calls the passed-in dragging info object’s [`enumerateDraggingItems(options:for:classes:searchOptions:using:)`](/documentation/AppKit/NSDraggingInfo/enumerateDraggingItems(options:for:classes:searchOptions:using:)) method and sets the dragging item’s [`imageComponentsProvider`](/documentation/AppKit/NSDraggingItem/imageComponentsProvider) property to a proper image based on the content. For NSView-based table views, you can use the `NSTableCellView` method [`draggingImageComponents`](/documentation/AppKit/NSTableCellView/draggingImageComponents).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)