Platforms to show: All Mac Windows Linux Cross-Platform
Back to CustomNSTextFieldCellMBS class.
CustomNSTextFieldCellMBS.cellSize(size as NSSizeMBS) as NSSizeMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If not implemented, we call through to super.cellSize.
We provide super.cellSize in size parameter.
CustomNSTextFieldCellMBS.Clone(clonedCell as NSTextFieldCellMBS) as CustomNSTextFieldCellMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This event is called when the system needs a clone of the object.
Please create a new object, keep a reference and return it.
SuperClone provides the cloned object, which we use together with the xojo object you return.
CustomNSTextFieldCellMBS.didDrawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CustomNSTextFieldCellMBS.drawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If false is returned or not implemented, we call super.drawWithFrame.
Some examples using this event:
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
CustomNSTextFieldCellMBS.fieldEditorForView(controlView as NSViewMBS) as NSTextViewMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
ControlView: The view containing cells that require a custom field editor.
Returns a custom field editor. The field editor must have fieldEditor set to true.
This is an override point for NSCell subclasses designed to use their own custom field editors. This message is sent to the selected cell of ControlView using the NSWindow method in fieldEditor.
Returning non-nil from this method indicates skipping the standard field editor querying processes including windowWillReturnFieldEditor delegation.
The default implementation returns nil.
CustomNSTextFieldCellMBS.imageRectForBounds(rect as NSRectMBS) as NSRectMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CustomNSTextFieldCellMBS.selectWithFrame(rect as NSRectMBS, controlView as NSViewMBS, text as NSTextMBS, theDelegate as Variant, selStart as Integer, selLength as Integer) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If you return false, we call super.selectWithFrame.
CustomNSTextFieldCellMBS.setUpFieldEditorAttributes(textObj as NSTextMBS, superFieldEditor as NSTextMBS) as NSTextMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
CustomNSTextFieldCellMBS.titleRectForBounds(rect as NSRectMBS) as NSRectMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If you return nil, we call super.titleRectForBounds.
The items on this page are in the following plugins: MBS MacCocoa Plugin.