Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSTableControlMBS.acceptDrop(info as NSDraggingInfoMBS, row as Integer, dropOperation as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Called by TableView when the mouse button is released over a table view that previously decided to allow a drop.
Notes:
info: An object that contains more information about this dragging operation.
row: The index of the proposed target row.
operation: The type of dragging operation.

Returns true if the drop operation was successful, otherwise false.

The data source should incorporate the data from the dragging pasteboard in the implementation of this method. You can use the draggingPasteboard method to get the data for the drop operation from info.
To accept a drop on the second row, row would be 2 and operation would be NSTableViewDropOn. To accept a drop below the last row, row would be TableView.numberOfRows and operation would be NSTableViewDropAbove.

Feedback, Comments & Corrections

NSTableControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

NSTableControlMBS.ColumnDidMove(notification as NSNotificationMBS, oldColumn as Integer, newColumn as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: This event informs the delegate that a column was moved by user action in the table view.

Feedback, Comments & Corrections

NSTableControlMBS.ColumnDidResize(notification as NSNotificationMBS, tableColumn as NSTableColumnMBS, OldWidth as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: This event informs you that a column was resized in the table view.

Feedback, Comments & Corrections

NSTableControlMBS.dataCell(tableColumn as NSTableColumnMBS, row as Int64) as NSCellMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Optional return a different cells for each row.
Notes:
A different data cell can be returned for any particular tableColumn and row, or a cell that will be used for the entire row (a full width cell). The returned cell should properly implement copyWithZone:, since the cell may be copied by NSTableView. If the tableColumn is non-nil, and nil is returned, then the table will use the default cell from tableColumn.dataCellForRow(Row).

When each row is being drawn, this method will first be called with a nil tableColumn. At this time, you can return a cell that will be used to draw the entire row, acting like a group. If you do return a cell for the 'nil' tableColumn, be prepared to have the other corresponding datasource and delegate methods to be called with a 'nil' tableColumn value. If don't return a cell, the method will be called once for each tableColumn in the tableView, as usual.

Feedback, Comments & Corrections

NSTableControlMBS.didAddRowView(rowView as NSTableRowViewMBS, row as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Tells the delegate that a row view was added at the specified row.
Notes:
rowView: The row view.
row: The index of the row.

At this point, the delegate can add extra views, or modify the properties of rowView.

This method is only valid for NSView-based table views.

Feedback, Comments & Corrections

NSTableControlMBS.didClickTableColumn(tableColumn as NSTableColumnMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Called if a table column was clicked on.

Feedback, Comments & Corrections

NSTableControlMBS.didDragTableColumn(tableColumn as NSTableColumnMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Sent at the time the mouse button goes up in tableView and tableColumn has been dragged during the time the mouse button was down.
Notes:
tableColumn: The table column.

The behavior of this method on Mac OS X v10.5 is different from prior versions. On Mac OS X v 10.5 the dragged column is sent to the subclass. In earlier versions the table column that is currently located at the dragged column's original index is sent.

Feedback, Comments & Corrections

NSTableControlMBS.didRemoveRowView(rowView as NSTableRowViewMBS, row as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Tells the delegate that a row view was removed from the table at the specified row.
Notes:
rowView: The row view.
row: The index of the row.

If row equals -1, the row is being deleted from the table and is no longer a valid row; otherwise row is a valid row that is being removed by being moved off screen.

This method is only valid for NSView-based table views.

Feedback, Comments & Corrections

NSTableControlMBS.didTile
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The tableview did tile.
Notes: The internal tile function properly sizes the table view and its header view and marks it as needing display.

Feedback, Comments & Corrections

NSTableControlMBS.DoubleClick
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The mouse made a double click.

Feedback, Comments & Corrections

NSTableControlMBS.draggingSessionEnded(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, operation as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Implement this method to determine when a dragging session has ended.
Notes:
session: The dragging session.
screenPoint: The ending drag location in screen coordinates.
operation: The drag operation. See NSDragOperation for supported values.

This delegate method can be used to determine when the dragging source operation ended at a specific location, such as the trash, by checking for an operation of NSDragOperationDelete.

Feedback, Comments & Corrections

NSTableControlMBS.draggingSessionWillBegin(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, rowIndexes as NSIndexSetMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Implement this method to determine when a dragging session will begin.
Notes:
session: The dragging session.
screenPoint: The initial drag location in screen coordinates.
rowIndexes: The indexes of the rows to be dragged, excluding rows that were not dragged due to pasteboardItemForRow returning nil.

Implement this method to know when the dragging session is about to begin and to potentially modify the dragging session.
The dragged item order will directly match the pasteboard writer array used to begin the dragging session with the NSView method beginDraggingSessionWithItems. Hence, the order is deterministic, and can be used in acceptDrop when enumerating the NSDraggingInfo pasteboard classes.

Feedback, Comments & Corrections

NSTableControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes Yes Yes No No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

NSTableControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The event called when the frame changed.

Feedback, Comments & Corrections

NSTableControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 16.5 Yes No No No No
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

NSTableControlMBS.heightOfRow(row as Int64) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Implement this event to support a table with varying row heights.
Notes: The height returned by this method should not include intercell spacing and must be greater than zero. Performance Considerations: For large tables in particular, you should make sure that this method is efficient. NSTableView may cache the values this method returns, but this should NOT be depended on, as all values may not be cached. To signal a row height change, call noteHeightOfRowsWithIndexesChanged. For a given row, the same row height should always be returned until noteHeightOfRowsWithIndexesChanged is called, otherwise unpredicable results will happen. NSTableView automatically invalidates its entire row height cache in reloadData, and noteNumberOfRowsChanged.

Feedback, Comments & Corrections

NSTableControlMBS.isGroupRow(row as Int64) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Invoked to allow the delegate to indicate that a specified row is a group row.
Notes:
row: The row index.

Return true if the specified row should have the group row style drawn, false otherwise.

If the cell in row is an NSTextFieldCell and contains only a string, the group row style attributes will automatically be applied to the cell.

Group rows in view-based table views can be made to visually ‘float' by setting the tableview method setFloatsGroupRows to true.

Note: When configured as a source list style table view, rows identified as group rows draw with a specific style unique for source lists.
Available in Mac OS X v10.5 and later.

Feedback, Comments & Corrections

NSTableControlMBS.LeftMouseDown(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Informs the receiver that the user has pressed the left mouse button.
Notes: This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

Feedback, Comments & Corrections

NSTableControlMBS.LeftMouseDragged(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Informs the receiver that the user has moved the mouse with the left button pressed.
Notes: This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

Feedback, Comments & Corrections

NSTableControlMBS.LeftMouseUp(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Informs the receiver that the user has released the left mouse button.
Notes: This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

Feedback, Comments & Corrections

NSTableControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 16.5 Yes No No No No
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

NSTableControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Called when a menuitem is choosen.
Notes: This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.

Feedback, Comments & Corrections

NSTableControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
  • The Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

NSTableControlMBS.mouseDownInHeaderOfTableColumn(tableColumn as NSTableColumnMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Sent to the subclass whenever the mouse button is clicked in the table view's header column.
Notes: tableColumn: The table column.

Feedback, Comments & Corrections

NSTableControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes:
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.

Feedback, Comments & Corrections

NSTableControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: The mouse button was released.
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Feedback, Comments & Corrections

NSTableControlMBS.namesOfPromisedFilesDroppedAtDestination(dropDestination as folderItem, DraggedRowsWithIndexes as NSIndexSetMBS) as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 17.1 Yes No No No No
Function: Returns an array of filenames that represent the indexSet rows for a drag to dropDestination.
Notes:
dropDestination: The drop location where the files are created.
indexSet: The indexes of the items being dragged.

Returns an array of filenames (not full paths) for the created files that the receiver promises to create.

This method is called when a destination has accepted a promise drag.
For more information on file promise dragging, see documentation on the NSDraggingSource protocol and namesOfPromisedFilesDroppedAtDestination:.

Feedback, Comments & Corrections

NSTableControlMBS.nextTypeSelectMatchFromRow(startRow as Int64, endRow as Int64, searchString as string) as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Cocoa Controls MBS MacControls Plugin 15.2 Yes No No No No
Function: Invoked to allow the subclass to modify how type selection works.
Notes:
startRow: The starting row of the search range.
endRow: The ending row of the search range.
searchString: A string containing the typed selection.

Return the first row in the range of startRow through endRow (excluding endRow itself) that matches selectionString. Return -1 if no match is found.

It is possible for endRow to be less than startRow if the search will wrap.
Available in Mac OS X v10.5 and later.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo PDF Plugins