Flutter Engine
The Flutter Engine
Instance Methods | List of all members
FlutterTextFieldCell Class Reference
Inheritance diagram for FlutterTextFieldCell:

Instance Methods

(instancetype) - initWithTextField:fieldEditor:
 
(NSTextView *) - fieldEditorForView: [implementation]
 

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

◆ fieldEditorForView:

- (NSTextView *) fieldEditorForView: (NSView*)  controlView
implementation

Definition at line 1 of file FlutterTextInputSemanticsObject.mm.

54 :(NSView*)controlView {
55 return _editor;
56}

◆ initWithTextField:fieldEditor:

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

Initializes the NSCell for the input NSTextField.

Definition at line 1 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: