Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSControlMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method uses the calcDrawInfo method of its cell to perform the calculations. Most controls maintain a flag that informs them if any of their cells have been modified in such a way that the location or size of the cell should be recomputed. If such a modification happens, this method is automatically invoked before the control is displayed. You should never need to invoke it yourself.
NSControlMBS.ConnectActionEvent
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If you want to use addhandler with this class and the action event, you need to call ConnectActionEvent after addhandler to actually have the plugin put things in place for handling the event.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
On success the handle property is not zero.
See also:
NSControlMBS.Constructor(Handle as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The handle is casted to a NSControl and the plugin retains this handle.
See also:
NSControlMBS.Constructor(left as Double, top as Double, width as Double, height as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
On success the handle property is not zero.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method calls the performClick method of the receiver's cell. This method raises an exception if the action message cannot be successfully sent.
NSControlMBS.selectCell(Cell as NSCellMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Cell: The cell to select. The cell must belong to the receiver.
If the cell is already selected (or does not belong to the receiver), this method does nothing. If the cell belongs to the receiver and is not selected, this method changes its state to NSOnState and redraws the cell.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method also recalculates the dimensions of the control as needed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If you want a multiple-cell custom subclass of NSControl to size itself to fit its cells, you must override this method. This method neither redisplays the receiver nor marks it as needing display. You must do this yourself with either thedisplay or setNeedsDisplay method.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Controls | MBS MacCocoa Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Validation sets the object value of the cell to the current contents of the cell's editor (the NSText object used for editing), storing it as a simple string or an attributed string object based on the attributes of the editor.
The items on this page are in the following plugins: MBS MacCocoa Plugin.