CustomNSTextFieldCellMBS events

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
Return a custom cell size.

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
Requests a clone of the object.

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
Event called after drawWithFrame run.

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
Event to replace drawWithFrame.

If false is returned or not implemented, we call super.drawWithFrame.

Some examples using this event:

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
Returns a custom field editor for editing in the view.

​Control​View: The view containing cells that require a custom field editor.

Returns a custom field editor. The field editor must have field​Editor 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 ​Control​View using the NSWindow method in field​Editor​.

Returning non-nil from this method indicates skipping the standard field editor querying processes including window​Will​Return​Field​Editor 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
The event for imageRectForBounds method.

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
The event for selectWithFrame method.

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
Sets up the field editor. 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 text​Obj 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
The event for titleRectForBounds method.

If you return nil, we call super.titleRectForBounds.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


💬 Ask a question or report a problem