---
title: resignFirstResponder()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsresponder/resignfirstresponder()
---

# resignFirstResponder()

Notifies the receiver that it’s been asked to relinquish its status as first responder in its window.

## Declaration

```swift
func resignFirstResponder() -> Bool
```

## Discussion

Discussion The default implementation returns true, resigning first responder status. Subclasses can override this method to update state or perform some action such as unhighlighting the selection, or to return false, refusing to relinquish first responder status. Use  the NSWindow makeFirstResponder(_:) method, not this method, to make an object the first responder. Never invoke this method directly.

## See Also

### Changing the First Responder

- [acceptsFirstResponder](appkit/nsresponder/acceptsfirstresponder.md)
- [becomeFirstResponder()](appkit/nsresponder/becomefirstresponder().md)
- [validateProposedFirstResponder(_:for:)](appkit/nsresponder/validateproposedfirstresponder(_:for:).md)
