<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSavePanel/tagNames",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSavePanel(py)tagNames"
  },
  "title" : "tagNames"
}
-->

# tagNames

The tag names that you want to include on a saved file.

```
var tagNames: [String]? { get set }
```

## Discussion

When the value of [`showsTagField`](/documentation/AppKit/NSSavePanel/showsTagField) is <doc://com.apple.documentation/documentation/Swift/true>, use this property to provide an array of strings that represent the initial tag names to display in the panel. If you set the property to `nil` or an empty array, the panel displays no initial tag names.

> Note:
> The Tags field is appropriate only in a Save panel.

---

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)