<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.13.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDrawer/open()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDrawer(im)open"
  },
  "title" : "open()"
}
-->

# open()

If the receiver is closed, this method opens it.

```
func open()
```

## Discussion

Calling `open` on an open drawer does nothing. You can get the state of a drawer by sending it [`state`](/documentation/AppKit/NSDrawer/state-swift.property). If an edge is not specified, an attempt will be made to choose an edge based on the space available to display the drawer onscreen. If you need to ensure that a drawer opens on a particular edge, use [`open(on:)`](/documentation/AppKit/NSDrawer/open(on:)).

---

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)