---
title: firstResponder()
framework: securityinterface
role: symbol
role_heading: Instance Method
path: securityinterface/sfauthorizationpluginview/firstresponder()
---

# firstResponder()

Returns the view that should get focus for keyboard events.

## Declaration

```swift
func firstResponder() -> NSResponder!
```

## Discussion

Discussion The default return value of this method is nil. When the authorization plug-in calls this method, your subclass should return the view that should get the focus for keyboard events.

## See Also

### Setting Up the Keyboard Loop

- [firstKeyView()](securityinterface/sfauthorizationpluginview/firstkeyview().md)
- [lastKeyView()](securityinterface/sfauthorizationpluginview/lastkeyview().md)
