---
title: autoSaveTextFields
framework: preferencepanes
role: symbol
role_heading: Instance Property
path: preferencepanes/nspreferencepane/autosavetextfields
---

# autoSaveTextFields

A Boolean value that indicates whether text fields save their values before changing preference panes.

## Declaration

```swift
var autoSaveTextFields: Bool { get }
```

## Discussion

Discussion If this property is true, text fields are forced to give up their responder status before shouldUnselect is called on the preference pane. If it is false, the preference pane is responsible for forcing text fields to give up their responder status before saving them. The default value is true.

## See Also

### Handling keyboard focus

- [firstKeyView](preferencepanes/nspreferencepane/firstkeyview.md)
- [initialKeyView](preferencepanes/nspreferencepane/initialkeyview.md)
- [lastKeyView](preferencepanes/nspreferencepane/lastkeyview.md)
