<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderCustomAction",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFileProviderCustomAction"
  },
  "title" : "NSFileProviderCustomAction"
}
-->

# NSFileProviderCustomAction

Support for custom actions.

```
protocol NSFileProviderCustomAction : NSObjectProtocol
```

## Overview

Adopt this protocol to add a custom action to the context menu (for example, when the user control-clicks an item in Finder).

If you want to create an action that displays custom user interface elements, add actions using the <doc://com.apple.documentation/documentation/FileProviderUI> framework instead. For more information, see `Adding Actions to the Context Menu`.

## Topics

### Performing Custom Actions

[`performAction(identifier:onItemsWithIdentifiers:completionHandler:)`](/documentation/FileProvider/NSFileProviderCustomAction/performAction(identifier:onItemsWithIdentifiers:completionHandler:))

Tells the File Provider extension to perform a custom action.



---

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)