prepare(forAction:itemIdentifiers:)
Performs any necessary setup or configuration for the specified action.
Declaration
func prepare(forAction actionIdentifier: String, itemIdentifiers: [NSFileProviderItemIdentifier])Parameters
- actionIdentifier:
The identifier for the action performed by the user.
- itemIdentifiers:
The identifiers of the items affected by the action.
Mentioned in
Discussion
Use this method to prepare a user interface for handling the action. At a minimum, you should display feedback about the action.
For more information, see Adding Actions to the Context Menu.