<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderTypeAndCreator/init(type:creator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "s:So28NSFileProviderTypeAndCreatorV4type7creatorABs6UInt32V_AFtcfc"
  },
  "title" : "init(type:creator:)"
}
-->

# init(type:creator:)

Creates a structure that contains the provided type and creator codes.

```
init(type: OSType, creator: OSType)
```

## Parameters

`type`

The first word of the `FinderInfo` structure. It matches the file type code.

`creator`

The second word of the `FinderInfo` structure. It matches the creator code.

---

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)