MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, 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
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.BoundsChanged
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: The event called when the bounds, but not the frame, changed.
NSTableControlMBS.ColumnDidMove(notification as NSNotificationMBS, oldColumn as Integer, newColumn as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: This event informs the delegate that a column was moved by user action in the table view.
NSTableControlMBS.ColumnDidResize(notification as NSNotificationMBS, tableColumn as NSTableColumnMBS, OldWidth as Double)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: This event informs you that a column was resized in the table view.
NSTableControlMBS.dataCell(tableColumn as NSTableColumnMBS, row as Int64) as NSCellMBS
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.didAddRowView(rowView as NSTableRowViewMBS, row as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.didClickTableColumn(tableColumn as NSTableColumnMBS)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Called if a table column was clicked on.
NSTableControlMBS.didDragTableColumn(tableColumn as NSTableColumnMBS)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.didRemoveRowView(rowView as NSTableRowViewMBS, row as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.didTile
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.DoubleClick
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: The mouse made a double click.
NSTableControlMBS.draggingSessionEnded(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, operation as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.draggingSessionWillBegin(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, rowIndexes as NSIndexSetMBS)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.EnableMenuItems
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: No, Feedback.

Function: The event where you can enable menu items.
NSTableControlMBS.FrameChanged
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: The event called when the frame changed.
NSTableControlMBS.GotFocus
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 16.5, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.
NSTableControlMBS.heightOfRow(row as Int64) as Double
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.isGroupRow(row as Int64) as boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.LeftMouseDown(e as NSEventMBS) as boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.LeftMouseDragged(e as NSEventMBS) as boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.LeftMouseUp(e as NSEventMBS) as boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.LostFocus
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 16.5, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.
NSTableControlMBS.MenuAction(HitItem as MenuItem) As Boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.mouseDownInHeaderOfTableColumn(tableColumn as NSTableColumnMBS)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Sent to the subclass whenever the mouse button is clicked in the table view's header column.
Notes: tableColumn: The table column.
NSTableControlMBS.MouseDrag(x as Integer, y as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.MouseUp(x as Integer, y as Integer)
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.
NSTableControlMBS.namesOfPromisedFilesDroppedAtDestination(dropDestination as folderItem, DraggedRowsWithIndexes as NSIndexSetMBS) as string()
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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:.
NSTableControlMBS.nextTypeSelectMatchFromRow(startRow as Int64, endRow as Int64, searchString as string) as Int64
event, Cocoa Controls, MBS CocoaControls Plugin (NSTableControl), control NSTableControlMBS,
Plugin version: 15.2, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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.

Next items

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




Links
MBS Real Studio Plugins