runModal(forIdentities:message:)
Displays a list of identities in a modal panel.
Declaration
func runModal(forIdentities identities: [Any]!, message: String!) -> IntParameters
- identities:
An array of identity objects (objects of type Secidentity. Use the Secidentitysearchcopynext function (in Security/SecIdentitySearch.h) to find identity objects.
- message:
A message string to display in the panel.
Discussion
This method returns NSOKButton if the default button is clicked, or NSCancelButton if the alternate button is clicked.
Use the identity() method to obtain the identity chosen by the user.