---
title: "setUpFieldEditorAttributes(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextfieldcell/setupfieldeditorattributes(_:)"
---

# setUpFieldEditorAttributes(_:)

Allows the cell to set up the field editor’s attributes before editing begins.

## Declaration

```swift
func setUpFieldEditorAttributes(_ textObj: NSText) -> NSText
```

## Parameters

- `textObj`: A text object configured as a field editor.

## Return Value

Return Value A text object with customized attributes suitable for editing the text field cell’s content.

## Discussion

Discussion You never invoke this method directly; by overriding it, however, you can customize the field editor. When you override this method, you should generally invoke the implementation of super and return the textObj argument. For information on field editors, see Using the Window’s Field Editor.

## See Also

### Managing the Field Editor

- [setWantsNotificationForMarkedText(_:)](appkit/nstextfieldcell/setwantsnotificationformarkedtext(_:).md)
