NSBrowser
An interface that displays a hierarchically organized list of data items that can be navigated and selected.
Declaration
class NSBrowserOverview
A browser displays information using a set of columns, which are indexed from left to right. Each successive column displays the next level down in the data hierarchy. This class uses the NSBrowserCell class to implement its user interface.
Browsers have the following components:
Columns
Scroll views
Matrices
Browser cells
To the user, browsers display data in columns and rows within each column. These components are arranged in the following component hierarchy:
Browser
|---Columns [1..*]
|---Scroll view
|---Matrix
|---Rows [0..*]Superclass overrides
isOpaque returns true when the browser doesn’t have a title and its background color’s alpha component is
1.0; otherwise, it returns false.
Protocol implementations
The NSBrowser implementation of namesOfPromisedFilesDropped(atDestination:) provides the names of the files that the browser promises to create at a specified location, the result of sending
browser:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:inColumn:to the delegate.
Topics
Configuring Browsers
reusesColumnsmaxVisibleColumnsautohidesScrollerbackgroundColorminColumnWidthseparatesColumnstakesTitleFromPreviousColumntile()delegate
Managing Component Types
Managing Selection Behavior
allowsBranchSelectionallowsEmptySelectionallowsMultipleSelectionselectedRowIndexes(inColumn:)selectRowIndexes(_:inColumn:)allowsTypeSelect
Managing Selection
selectedCell(inColumn:)selectedCellsselectAll(_:)selectedRow(inColumn:)selectRow(_:inColumn:)selectionIndexPathselectionIndexPaths
Accessing Components
loadedCell(atRow:column:)editItem(at:with:select:)item(at:)item(atRow:inColumn:)indexPath(forColumn:)isLeafItem(_:)parentForItems(inColumn:)
Managing the Path
Managing Columns
addColumn()selectedColumnlastColumnfirstVisibleColumnnumberOfVisibleColumnslastVisibleColumnvalidateVisibleColumns()isLoadedloadColumnZero()reloadColumn(_:)
Accessing Column Titles
title(ofColumn:)setTitle(_:ofColumn:)isTitleddrawTitle(ofColumn:in:)titleHeighttitleFrame(ofColumn:)
Updating Browsers
Scrolling
hasHorizontalScrollerscrollColumnToVisible(_:)scrollColumnsLeft(by:)scrollColumnsRight(by:)scrollRowToVisible(_:inColumn:)
Dragging
setDraggingSourceOperationMask(_:forLocal:)canDragRows(with:inColumn:with:)draggingImageForRows(with:inColumn:with:offset:)
Getting Column Frames
Getting Row Frames
Managing Actions
Handling Mouse-Click Events
Sizing
removeSavedColumns(withAutosaveName:)columnsAutosaveNameNSBrowser.ColumnsAutosaveNamecolumnContentWidth(forColumnWidth:)columnWidth(forColumnContentWidth:)columnResizingTypeprefersAllColumnUserResizingwidth(ofColumn:)setWidth(_:ofColumn:)defaultColumnWidth()setDefaultColumnWidth(_:)rowHeight
Constants
NSBrowser.ColumnResizingTypeNSBrowser.DropOperationApplication Kit Versions for NSBrowser Functionality