<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Collaboration",
  "identifier" : "/documentation/Collaboration/CBIdentityPicker/runModal()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Collaboration"
    ],
    "preciseIdentifier" : "c:objc(cs)CBIdentityPicker(im)runModal"
  },
  "title" : "runModal()"
}
-->

# runModal()

Runs the receiver as an application-modal dialog.

```
func runModal() -> Int
```

## Return Value

`NSOKButton` if the user selected OK; otherwise,  `NSCancelButton`.

## Discussion

The receiver may create identities for selected records if necessary.

---

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)