<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFilePromiseProvider/init(fileType:delegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFilePromiseProvider(im)initWithFileType:delegate:"
  },
  "title" : "init(fileType:delegate:)"
}
-->

# init(fileType:delegate:)

Initializes a file promise provider for a certain file type.

```
convenience init(fileType: String, delegate: any NSFilePromiseProviderDelegate)
```

## Parameters

`fileType`

A string describing the file type.

`delegate`

An object that conforms to the NSFilePromiseProviderDelegate protocol, for providing promised file data.

---

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)