<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAppleEventDescriptor/init(boolean:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAppleEventDescriptor(cm)descriptorWithBoolean:"
  },
  "title" : "init(boolean:)"
}
-->

# init(boolean:)

Creates a descriptor initialized with type `typeBoolean` that stores the specified Boolean value.

```
init(boolean: Bool)
```

## Parameters

`boolean`

The Boolean value to be set in the returned descriptor.

## Return Value

A descriptor with the specified Boolean value, or `nil` if an error occurs.

---

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)