<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSResponder/resignFirstResponder()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSResponder(im)resignFirstResponder"
  },
  "title" : "resignFirstResponder()"
}
-->

# resignFirstResponder()

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

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

## Discussion

The default implementation returns <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/false>, refusing to relinquish first responder status.

Use  the `NSWindow` [`makeFirstResponder(_:)`](/documentation/AppKit/NSWindow/makeFirstResponder(_:)) method, not this method, to make an object the first responder. Never invoke this method directly.

---

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)