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

# NSPathControlDelegate

A set of methods that can be implemented by the delegate of a path control object to support dragging to and from the control.

```
protocol NSPathControlDelegate : NSObjectProtocol
```

## Topics

### Dragging Support

[`-  pathControl:shouldDragPathComponentCell:withPasteboard:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:shouldDrag:with:)-35j1e)

Implement this method to enable dragging from the control.

[`-  pathControl:validateDrop:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:validateDrop:))

Implement this method to enable dragging onto the control.

[`-  pathControl:acceptDrop:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:acceptDrop:))

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

### Customizing a Pop-Up–Style Path

[`-  pathControl:willDisplayOpenPanel:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:willDisplay:))

Implement this method to customize the Open panel shown by a pop-up–style path.

[`-  pathControl:willPopUpMenu:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:willPopUp:))

Implement this method to customize the menu of a pop-up–style path.

### Instance Methods

[`-  pathControl:shouldDragItem:withPasteboard:`](/documentation/AppKit/NSPathControlDelegate/pathControl(_:shouldDrag:with:)-5ciyd)

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)