Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CustomNSTextFieldCellMBS.cellSize(size as NSSizeMBS) as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: Return a custom cell size.
Notes:
If not implemented, we call through to super.cellSize.
We provide super.cellSize in size parameter.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.Clone(clonedCell as NSTextFieldCellMBS) as CustomNSTextFieldCellMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.2 Yes No No No No
Function: Requests a clone of the object.
Notes:
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.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.didDrawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: Event called after drawWithFrame run.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.drawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: Event to replace drawWithFrame.
Notes: If false is returned or not implemented, we call super.drawWithFrame.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.fieldEditorForView(controlView as NSViewMBS) as NSTextViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.2 Yes No No No No
Function: Returns a custom field editor for editing in the view.
Notes:
​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.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.imageRectForBounds(rect as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: The event for imageRectForBounds method.

Feedback, Comments & Corrections

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 Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: The event for selectWithFrame method.
Notes: If you return false, we call super.selectWithFrame.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.setUpFieldEditorAttributes(textObj as NSTextMBS, superFieldEditor as NSTextMBS) as NSTextMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.2 Yes No No No No
Function: Sets up the field editor. You never invoke this method directly; by overriding it, however, you can customize the field editor.
Notes: 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.

Feedback, Comments & Corrections

CustomNSTextFieldCellMBS.titleRectForBounds(rect as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No No No
Function: The event for titleRectForBounds method.
Notes: If you return nil, we call super.titleRectForBounds.

Feedback, Comments & Corrections

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




Links
MBS Xojo Chart Plugins