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

# setWantsNotificationForMarkedText(_:)

Directs the cell’s associated field editor to post text change notifications.

## Declaration

```swift
func setWantsNotificationForMarkedText(_ flag: Bool)
```

## Parameters

- `flag`: If doc://com.apple.documentation/documentation/Swift/true, the field editor posts text change notifications (NSTextDidChangeNotification) while editing marked text; if doc://com.apple.documentation/documentation/Swift/false, notifications are delayed until the marked text confirmation.

## See Also

### Managing the Field Editor

- [setUpFieldEditorAttributes(_:)](appkit/nstextfieldcell/setupfieldeditorattributes(_:).md)
