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

# allowsMultipleSelection

A Boolean that indicates whether the user may select multiple files and directories.

```
var allowsMultipleSelection: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the user may select multiple items from the browser. When the selection contains multiple items, use the [`urls`](/documentation/AppKit/NSOpenPanel/urls) property to retrieve those items instead of the inherited [`url`](/documentation/AppKit/NSSavePanel/url) property.

---

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)