Flutter macOS Embedder
FlutterTextFieldCell Class Reference
Inheritance diagram for FlutterTextFieldCell:

Instance Methods

(instancetype) - initWithTextField:fieldEditor:

Detailed Description

A convenient class that can be used to set a custom field editor for an NSTextField.

The FlutterTextField uses this class set the FlutterTextInputPlugin as its field editor.

Definition at line 23 of file FlutterTextInputSemanticsObject.mm.

Method Documentation

◆ initWithTextField:fieldEditor:

- (instancetype) initWithTextField: (NSTextField*)  textField
fieldEditor: (NSTextView*)  editor 
Initial value:
NSTextView* _editor

Initializes the NSCell for the input NSTextField.

Definition at line 38 of file FlutterTextInputSemanticsObject.mm.

38  :(NSTextField*)textField fieldEditor:(NSTextView*)editor {
39  self = [super initTextCell:textField.stringValue];
40  if (self) {
41  _editor = editor;
42  [self setControlView:textField];
43  // Read-only text fields are sent to the mac embedding as static
44  // text. This text field must be editable and selectable at this
45  // point.
46  self.editable = YES;
47  self.selectable = YES;
48  }
49  return self;
50 }

The documentation for this class was generated from the following file: