<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/shouldEnableAction(for:identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)shouldEnableActionForPerson:identifier:"
  },
  "title" : "shouldEnableAction(for:identifier:)"
}
-->

# shouldEnableAction(for:identifier:)

Sent to the delegate to determine whether the action should be enabled.

```
func shouldEnableAction(for person: ABPerson!, identifier: String!) -> Bool
```

## Parameters

`person`

The person on which the action will be taken.

`identifier`

The unique identifier of the selected value.

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if the action is applicable; otherwise, [`NO`](/documentation/ObjectiveC/NO).

## Discussion

If the property returned by [`actionProperty()`](/documentation/ObjectiveC/NSObject-swift.class/actionProperty()) is a multivalue property, `identifier` contains the unique identifier of the value selected.

---

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)