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

# pathControl(_:acceptDrop:)

Implement this method to accept previously validated contents dropped onto the control.

```
@MainActor optional func pathControl(_ pathControl: NSPathControl, acceptDrop info: any NSDraggingInfo) -> Bool
```

## Parameters

`pathControl`

The path control that sent the message.

`info`

An object containing details about this dragging operation.

## Discussion

In order to accept the dropped contents previously accepted from [`pathControl(_:validateDrop:)`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:validateDrop:)), you must implement this method. This method is called from performDragOperation:. You should change the URL value based on the dragged information.

If not implemented, and the control’s cell is editable, the drop is accepted if it contains an `NSURLPboardType` or `NSFilenamesPboardType` that conforms to the cell’s allowed types. The cell’s URL value is automatically changed, and the action is invoked. Implementation of this method is optional.

---

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)