<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/IconCreationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWorkspaceIconCreationOptions"
  },
  "title" : "NSWorkspace.IconCreationOptions"
}
-->

# NSWorkspace.IconCreationOptions

Constants that describe options for creating icons.

```
struct IconCreationOptions
```

## Overview

Use these constants with the [`setIcon(_:forFile:options:)`](/documentation/AppKit/NSWorkspace/setIcon(_:forFile:options:)) method. You can combine these using the C bitwise OR operator.

## Topics

### Creation Options

[`NSExcludeQuickDrawElementsIconCreationOption`](/documentation/AppKit/NSWorkspace/IconCreationOptions/excludeQuickDrawElementsIconCreationOption)

An option to suppress generation of the QuickDraw format icon representations that are used in macOS 10.0 through macOS 10.4.

[`NSExclude10_4ElementsIconCreationOption`](/documentation/AppKit/NSWorkspace/IconCreationOptions/exclude10_4ElementsIconCreationOption)

An option to suppress generation of the new higher resolution icon representations that are supported in macOS 10.4.

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSWorkspace/IconCreationOptions/init(rawValue:))

Initializes an icon creation option using the specified raw value.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`OptionSet`](/documentation/Swift/OptionSet)

---

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)