Platforms to show: All Mac Windows Linux Cross-Platform

Back to DesktopNSOutlineControlMBS control.

Next items

DesktopNSOutlineControlMBS.acceptDrop(info as NSDraggingInfoMBS, item as NSOutlineViewItemMBS, index as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value that indicates whether a drop operation was successful.

info: An object that contains more information about this dragging operation.
item: The parent of the item over which the cursor was placed when the mouse button was released.
index: The index of the child of item over which the cursor was placed when the mouse button was released.

Return 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 get the data for the drop operation from info using the draggingPasteboard method.
The return value indicates success or failure of the drag operation to the system.

DesktopNSOutlineControlMBS.BoundsChanged

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called when the bounds, but not the frame, changed.

DesktopNSOutlineControlMBS.childOfItem(index as Integer, item as NSOutlineViewItemMBS) as NSOutlineViewItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the child item at the specified index of a given item.

index: The index of the child item from item to return.
item: An item in the data source.

Return the child item at index of item. If item is nil, returns the appropriate child item of the root object.

Children of a given parent item are accessed sequentially. In order for the collapsed state of the outline view to remain consistent when it is reloaded you must always return the same object for a specified child and item.

Do not call reloadData from this method.

This event is called very frequently, so it must be efficient.

DesktopNSOutlineControlMBS.Closing

Type Topic Version
event Cocoa Controls 21.5

The control is about to close.
In older Xojo versions, this event is named Close.

DesktopNSOutlineControlMBS.ColumnDidMove(notification as NSNotificationMBS, OldColumn as Integer, NewColumn as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked whenever the user moves a column in the outline view.

DesktopNSOutlineControlMBS.ColumnDidResize(notification as NSNotificationMBS, tableColumn as NSTableColumnMBS, OldWidth as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked whenever the user resizes a column in the outline view.

DesktopNSOutlineControlMBS.concludeDragOperation(info as NSDraggingInfoMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when the dragging operation is complete, signaling the receiver to perform any necessary clean-up.

sender: The object sending the message; use it to get details about the dragging operation.

For this method to be invoked, the previous performDragOperation must have returned true.

The destination implements this method to perform any tidying up that it needs to do, such as updating its visual representation now that it has incorporated the dragged data. This message is the last message sent from sender to the destination during a dragging session.

If the sender object's animatesToDestination property was set to true in prepareForDragOperation, then the drag image is still visible. At this point you should draw the final visual representation in the view. When this method returns, the drag image is removed form the screen. If your final visual representation matches the visual representation in the drag, this is a seamless transition.

DesktopNSOutlineControlMBS.ConstructContextualMenu(base as DesktopMenuItem, x as Integer, y as Integer) As Boolean

Type Topic Version
event Cocoa Controls 22.1
This event is called when it is appropriate to display a contextual menu for the control.

DesktopNSOutlineControlMBS.ContextualMenuItemSelected(selectedItem As DesktopMenuItem) As Boolean

Type Topic Version
event Cocoa Controls 21.5
Called when a menuitem is chosen.

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.

DesktopNSOutlineControlMBS.FocusLost

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only

The control lost focus.
In older Xojo versions, this event is named LostFocus.

This only fires if the control itself lost focus and not a sub control.

DesktopNSOutlineControlMBS.FocusReceived

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only

The control itself got focus.
In older Xojo versions, this event is named GotFocus.

This only fires if the control itself got focus and not a sub control.

DesktopNSOutlineControlMBS.FrameChanged

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called when the frame changed.

This event notifies you, that the control changed it's bounding frame, which is position and/or size.

DesktopNSOutlineControlMBS.heightOfRowByItem(item as NSOutlineViewItemMBS) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the height in points of the row containing item.

item: The row item.

Return the height of the row.

Values returned by this method should not include intercell spacing and must be greater than 0.
Implement this event to support an outline view with varying row heights.

For large tables in particular, you should make sure that this method is efficient. NSOutlineView may cache the values this method returns, so if you would like to change a row's height make sure to invalidate the row height by calling noteHeightOfRowsWithIndexesChanged. NSOutlineView automatically invalidates its entire row height cache in reloadData and noteNumberOfRowsChanged.

If you call viewAtColumn or rowViewAtRow within your implementation of this method, an exception is thrown.

To avoid the possibility of a hang due to unexpected recursion, don’t call geometry-calculating methods such as bounds, rectOfColumn, or any NSTableView method that calls tile within your implementation of this method.

DesktopNSOutlineControlMBS.isGroupItem(item as NSOutlineViewItemMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean that indicates whether a given row should be drawn in the “group row” style.

item: An item in the outline view.

Return true to indicate a particular row should have the "group row" style drawn for that row, otherwise false.

If the cell in that row is an instance of NSTextFieldCell and contains only a string value, the “group row” style attributes are automatically applied for that cell.

DesktopNSOutlineControlMBS.isItemExpandable(item as NSOutlineViewItemMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value that indicates whether the a given item is expandable.

item: An item in the data source.

Returns true if item can be expanded to display its children, otherwise NO.

This method may be called quite often, so it must be efficient.

Do not call reloadData from this method.

DesktopNSOutlineControlMBS.ItemDidCollapse(notification as NSNotificationMBS, item as NSOutlineViewItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view.

DesktopNSOutlineControlMBS.ItemDidExpand(notification as NSNotificationMBS, item as NSOutlineViewItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when notification is posted—that is, whenever the user expands an item in the outline view.

DesktopNSOutlineControlMBS.itemForPersistentObject(PersistentObject as Variant) as NSOutlineViewItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked by outlineView to return the item for the archived object.

object: An archived representation of an item in outlineView's data source.

Return the unarchived item corresponding to object. If the item is an archived object, this method may return the object.

When the outline view is restoring the saved expanded items, this method is called for each expanded item, to translate the archived object to an outline view item.

You must implement this method if you are automatically saving expanded items (that is, if autosaveExpandedItems returns true).

DesktopNSOutlineControlMBS.ItemWillCollapse(notification as NSNotificationMBS, item as NSOutlineViewItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view.

DesktopNSOutlineControlMBS.ItemWillExpand(notification as NSNotificationMBS, item as NSOutlineViewItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when notification is posted—that is, whenever the user is about to expand an item in the outline view.

DesktopNSOutlineControlMBS.LeftMouseDown(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has pressed the left mouse button.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.LeftMouseDragged(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has moved the mouse with the left button pressed.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.LeftMouseUp(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has released the left mouse button.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.MenuBarSelected

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only

The event where you can enable menu items.
In older Xojo versions, this event is named EnableMenuItems.

DesktopNSOutlineControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The mouse button was pressed inside the control’s region at the location passed in to x, y.

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.

DesktopNSOutlineControlMBS.mouseDownInHeaderOfTableColumn(tableColumn as NSTableColumnMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Event sent whenever the mouse button is clicked in outlineView while the cursor is in a column header tableColumn.

DesktopNSOutlineControlMBS.MouseDrag(x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This event fires continuously after the mouse button was pressed inside the Control.

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.

DesktopNSOutlineControlMBS.MouseUp(x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The mouse button was released.

Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

DesktopNSOutlineControlMBS.namesOfPromisedFilesDroppedAtDestination(dropDestination as folderItem, DraggedItems() as NSOutlineViewItemMBS) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns an array of filenames for the created files that the receiver promises to create.

dropDestination: The drop location where the files are created.
items: The items being dragged.

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

For more information on file promise dragging, see documentation on the NSDraggingSource protocol and namesOfPromisedFilesDroppedAtDestination.

DesktopNSOutlineControlMBS.nextTypeSelectMatchFromItem(startItem as NSOutlineViewItemMBS, endItem as NSOutlineViewItemMBS, searchString as String) as NSOutlineViewItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the first item that matches the searchString from within the range of startItem to endItem.

startItem: The first item to search.
endItem: The item before which to stop searching. It is possible for endItem to be less than startItem if the search will wrap.
searchString: The string for which to search.

Returns the first item—from within the range of startItem to endItem—that matches the searchString, or nil if there is no match.

Implement this method if you want to control how type selection works. You should include startItem as a possible match, but do not include endItem.
It is not necessary to implement this event in order to support type select.

DesktopNSOutlineControlMBS.numberOfChildrenOfItem(item as NSOutlineViewItemMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the number of child items encompassed by a given item.

item: An item in the data source.

Returns the number of child items encompassed by item. If item is nil, this method should return the number of children for the top-level item.

The numberOfChildrenOfItem method is called very frequently, so it must be efficient.

Do not call reloadData from this method.

DesktopNSOutlineControlMBS.objectValue(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked by outlineView to return the data object associated with the specified item.

tableColumn: A column in outlineView.
item: An item in the data source in the specified tableColumn of the view.

Returns the item is located in the specified tableColumn of the view.

Do not call reloadData from this method.

DesktopNSOutlineControlMBS.Opening

Type Topic Version
event Cocoa Controls 21.5

The control is about to was created and you can initialize it.
In older Xojo versions, this event is named Open.

DesktopNSOutlineControlMBS.OtherMouseDown(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has pressed a mouse button other than the left or right one.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.OtherMouseDragged(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has moved the mouse with a button other than the left or right button pressed.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.OtherMouseUp(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has released a mouse button other than the left or right button.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.pasteboardWriterForItem(item as NSOutlineViewItemMBS) as NSPasteboardItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Implement this method to enable the table to be an NSDraggingSource that supports dragging multiple items.

item: The item for which to return a pasteboard writer.

Returns a NSPasteboardItem object.

If this method is implemented, then writeItems is not called.

DesktopNSOutlineControlMBS.persistentObjectForItem(item as NSOutlineViewItemMBS) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked by outlineView to return an archived object for item.

item: The item for which to return an archived object.

Returns an archived representation of item. If the item is an archived object, this method may return the item.

When the outline view is saving the expanded items, this method is called for each expanded item, to translate the outline view item to an archived object.

You must implement this method if you are automatically saving expanded items (that is, if autosaveExpandedItems returns true).

DesktopNSOutlineControlMBS.RightMouseDown(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the view that the user has pressed the right mouse button.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.RightMouseDragged(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has moved the mouse with the right button pressed .

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.RightMouseUp(e as NSEventMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Informs the receiver that the user has released the right mouse button.

This event is called before the normal event processing from Xojo happens. So return true to hide event from Xojo runtime.

DesktopNSOutlineControlMBS.rowViewForItem(item as NSOutlineViewItemMBS) as NSTableRowViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Implement this method to return a custom NSTableRowView for a particular item.

item: The item displayed by the returned table row view.

Return an instance or subclass of NSTableRowView. If nil is returned, a NSTableRowView instance is created and used.

This method, if implemented, is only invoked for NSView-based outline views.

DesktopNSOutlineControlMBS.textShouldBeginEditing(control as NSControlMBS, fieldEditor as NSTextMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called to decide whether text editing should be allowed.

Return true to allow.

DesktopNSOutlineControlMBS.textShouldEndEditing(control as NSControlMBS, fieldEditor as NSTextMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called to decide whether ending text editing should be allowed.

Return true to allow.

DesktopNSOutlineControlMBS.toolTipForCell(cell as NSCellMBS, byref rect as NSRectMBS, tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS, mouseLocation as NSPointMBS) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
When the cursor pauses over a given cell, the value returned from this method is displayed in a tooltip.

cell: The cell for which to generate a tooltip.
rect: The proposed active area of the tooltip. To control the default active area, you can modify the rect parameter. By default, rect is computed as cell.drawingRectForBounds(cellFrame).
tc: The table column that contains cell.
item: The item for which to display a tooltip.
mouseLocation: The current mouse location in view coordinates.

If you don’t want a tooltip at that location, return nil or the empty string.

DesktopNSOutlineControlMBS.typeSelectString(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the string that is used for type selection for a given column and item.

tableColumn: A table column in the outline view.
item: An item in the outline view.

Return the string that is used for type selection. You may want to change what is searched for based on what is displayed, or simply return nil for that row and/or column to not be searched

Implement this method if you want to control the string that is used for type selection. You may want to change what is searched for based on what is displayed, or simply return nil to specify that the given row and/or column should not be searched. By default, all cells with text in them are searched.

The default value when this delegate method is not implemented is:
outlineView.preparedCellAtColumn(tableColumn, outlineView.rowForItem(item)).stringValue
and you can return this value from the event if you wish.

DesktopNSOutlineControlMBS.updateDraggingItemsForDrag(draggingInfo as NSDraggingInfoMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Implement this method to enable the table to update dragging items as they are dragged over the view.

draggingInfo: The dragging info object.

Next items

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


The biggest plugin in space...