---
title: "validateUserInterfaceItem(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsobjectcontroller/validateuserinterfaceitem(_:)"
---

# validateUserInterfaceItem(_:)

Returns whether the receiver can handle the action method for a user interface item.

## Declaration

```swift
func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool
```

## Parameters

- `item`: The user interface item to validate. You can send item the doc://com.apple.appkit/documentation/AppKit/NSValidatedUserInterfaceItem/action and doc://com.apple.appkit/documentation/AppKit/NSValidatedUserInterfaceItem/tag messages.

## Return Value

Return Value true if the receiver can handle the action method; false if it cannot.
