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

# validateUserInterfaceItem(_:)

Validates the specified user interface item that the receiver manages.

## Declaration

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

## Parameters

- `item`: The user interface item to validate.

## Return Value

Return Value true if the item is valid; otherwise, false.

## Discussion

Discussion These items currently include only Revert and Save. You can override this method to add more selectors validated by your document subclass.
