Up
Authors
- Scott Christley (
scottc@net-community.com
)
-
- Felipe A. Rodriguez (
far@ix.netcom.com
)
-
- Franck Wolff (
wolff@cybercable.fr
)
-
- Mirko Viviani (
mirko.viviani@rccr.cremona.it
)
-
- Fred Kiefer (
FredKiefer@gmx.de
)
-
Control to display and select from hierarchal lists
Copyright: (C) 1996, 1997, 2002 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSBrowser.h
- Conforms to:
- NSCoding
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
+ (Class)
cellClass;
Availability: OpenStep
Returns the NSBrowserCell class (regardless of
whether a
-setCellClass:
message has been sent to a particular instance).
This method is not meant to be used by applications.
See Also:
-setCellClass:
+ (void)
removeSavedColumnsWithAutosaveName: (
NSString*)name;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (BOOL)
acceptsArrowKeys;
Availability: OpenStep
Returns whether the arrow keys are enabled. By
default YES
.
See Also:
-setAcceptsArrowKeys:
- (void)
addColumn;
Availability: OpenStep
Adds a column to the right of the last column,
adjusts subviews and scrolls to make the new
column visible if needed.
- (BOOL)
allowsBranchSelection;
Availability: OpenStep
Returns whether the user can select branch items
when multiple selection is enabled. By default
YES
.
See Also:
-setAllowsBranchSelection:
- (BOOL)
allowsEmptySelection;
Availability: OpenStep
Returns whether there can be nothing selected. By
default YES
.
See Also:
-setAllowsEmptySelection:
- (BOOL)
allowsMultipleSelection;
Availability: OpenStep
- (BOOL)
allowsTypeSelect;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (BOOL)
autohidesScroller;
Availability: MacOS-X 10.6.0
Description forthcoming.
- (
NSColor*)
backgroundColor;
Availability: MacOS-X 10.6.0
Description forthcoming.
- (BOOL)
canDragRowsWithIndexes: (
NSIndexSet*)rowIndexes
inColumn: (
NSInteger)columnIndex
withEvent: (
NSEvent*)dragEvent;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (id)
cellPrototype;
Availability: OpenStep
Returns the NSBrowser's prototype NSCell
instance.
See Also:
-setCellPrototype:
- (
NSInteger)
clickedColumn;
Availability: MacOS-X 10.6.0
Description forthcoming.
- (
NSInteger)
clickedRow;
Availability: MacOS-X 10.6.0
Description forthcoming.
- (
CGFloat)
columnContentWidthForColumnWidth: (
CGFloat)columnWidth;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSInteger)
columnOfMatrix: (
NSMatrix*)matrix;
Availability: OpenStep
Returns the column number in which
matrix is located. Returns -1 if
matrix is not found.
- (
CGFloat)
columnWidthForColumnContentWidth: (
CGFloat)columnContentWidth;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSString*)
columnsAutosaveName;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (id)
delegate;
Availability: OpenStep
Returns the NSBrowser's delegate.
See Also:
-setDelegate:
- (void)
displayAllColumns;
Availability: OpenStep
Updates the NSBrowser to display all loaded
columns.
See Also:
-displayColumn:
-tile
- (void)
displayColumn: (
NSInteger)column;
Availability: OpenStep
Updates the NSBrowser to display the
column with the given index.
- (void)
doClick: (id)sender;
Availability: OpenStep
Responds to (single) mouse clicks in a column of
the NSBrowser.
See Also:
-doDoubleClick:
- (void)
doDoubleClick: (id)sender;
Availability: OpenStep
- (SEL)
doubleAction;
Availability: OpenStep
Returns the NSBrowser's double-click action
method.
See Also:
-setDoubleAction:
- (void)
drawTitle: (
NSString*)title
inRect: (
NSRect)aRect
ofColumn: (
NSInteger)column;
Availability: OpenStep
Draws the title for the column
at index column within the rectangle defined
by aRect.
- (void)
drawTitleOfColumn: (
NSInteger)column
inRect: (
NSRect)aRect;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
NSInteger)
firstVisibleColumn;
Availability: OpenStep
Returns the index of the first visible column.
- (
NSRect)
frameOfColumn: (
NSInteger)column;
Availability: OpenStep
Returns the rectangle containing the
column at index column.
- (
NSRect)
frameOfInsideOfColumn: (
NSInteger)column;
Availability: OpenStep
Returns the rectangle containing the
column at index column,
- (BOOL)
hasHorizontalScroller;
Availability: OpenStep
Returns whether an NSScroller is used to scroll
horizontally. By default a NSBrowser has a
horizontal scroller.
See Also:
-setHasHorizontalScroller:
- (BOOL)
isLoaded;
Availability: OpenStep
Returns whether column zero is loaded.
- (BOOL)
isTitled;
Availability: OpenStep
Returns whether columns display titles. By
default a NSBrowser displays titles.
See Also:
-setTitled:
- (
NSInteger)
lastColumn;
Availability: OpenStep
Returns the index of the last column loaded.
See Also:
-setLastColumn:
- (
NSInteger)
lastVisibleColumn;
Availability: OpenStep
Returns the index of the last visible column.
- (void)
loadColumnZero;
Availability: OpenStep
Loads column zero; unloads previously loaded columns.
- (id)
loadedCellAtRow: (
NSInteger)row
column: (
NSInteger)column;
Availability: OpenStep
Loads if necessary and returns the NSCell at
row in column. if you change
this code, you may want to look at the
__performLoadOfColumn: method in
which the following code is integrated (for speed)
- (Class)
matrixClass;
Availability: OpenStep
Returns the class of NSMatrix used in the
NSBrowser's columns.
See Also:
-setMatrixClass:
- (
NSMatrix*)
matrixInColumn: (
NSInteger)column;
Availability: OpenStep
Returns the matrix located in the
column identified by index
column. Returns nil
if the
matrix does not exists
- (
NSInteger)
maxVisibleColumns;
Availability: OpenStep
Returns the maximum number of visible columns. By
default a NSBrowser has 3 visible columns.
See Also:
-setMaxVisibleColumns:
- (
CGFloat)
minColumnWidth;
Availability: OpenStep
Returns the minimum column width in pixels.
See Also:
-setMinColumnWidth:
- (
NSInteger)
numberOfVisibleColumns;
Availability: OpenStep
- (
NSString*)
path;
Availability: OpenStep
- (
NSString*)
pathSeparator;
Availability: OpenStep
Returns the path separator. The default is "/".
See Also:
-setPathSeparator:
- (
NSString*)
pathToColumn: (
NSInteger)column;
Availability: OpenStep
Returns a string representing the path from the
first column up to, but not including,
the column at index column.
See Also: -path
- (BOOL)
prefersAllColumnUserResizing;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
reloadColumn: (
NSInteger)column;
Availability: OpenStep
Reloads column if it is loaded; sets it
as the last column. Reselects previously
selected cells, if they remain.
- (BOOL)
reusesColumns;
Availability: OpenStep
Returns YES
if NSMatrix objects
aren't freed when their columns are unloaded. By
default a NSBrowser does not reuses their
columns.
See Also:
-setReusesColumns:
[NSMatrix -renewRows:columns:]
- (void)
scrollColumnToVisible: (
NSInteger)column;
Availability: OpenStep
- (void)
scrollColumnsLeftBy: (
NSInteger)shiftAmount;
Availability: OpenStep
- (void)
scrollColumnsRightBy: (
NSInteger)shiftAmount;
Availability: OpenStep
- (void)
scrollRowToVisible: (
NSInteger)row
inColumn: (
NSInteger)column;
Availability: MacOS-X 10.6.0
Description forthcoming.
- (void)
scrollViaScroller: (
NSScroller*)sender;
Availability: OpenStep
Scrolls columns left or right based on an
NSScroller.
- (void)
selectAll: (id)sender;
Availability: OpenStep
- (void)
selectRow: (
NSInteger)row
inColumn: (
NSInteger)column;
Availability: OpenStep
Selects the cell at index row in the
column identified by index
column. If the delegate method
-browser:selectRow:inColumn:
is implemented, this is its responsability to select
the cell. This method adds a NSBrowser
column if needed and deselects other
selections if the browser does not allows
multiple selection.
See Also:
-loadedCellAtRow:column:
-browser:selectRow:inColumn:
[NSMatrix -selectCellAtRow:column:]
- (id)
selectedCell;
Availability: OpenStep
- (id)
selectedCellInColumn: (
NSInteger)column;
Availability: OpenStep
- (
NSArray*)
selectedCells;
Availability: OpenStep
- (
NSInteger)
selectedColumn;
Availability: OpenStep
Returns the index of the last column with a
selected item.
- (
NSIndexPath*)
selectionIndexPath;
Availability: MacOS-X 10.6.0
Returns the index path of the selected item, or
nil
if there is no selection.
Instance Variables for NSBrowser Class
@protected BOOL _acceptsAlphaNumericalKeys;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _acceptsArrowKeys;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected SEL _action;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _allowsBranchSelection;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _allowsEmptySelection;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _allowsMultipleSelection;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _alphaNumericalLastColumn;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSCell* _browserCellPrototype;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _browserColumns;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _browserDelegate;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected Class _browserMatrixClass;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _charBuffer;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSBrowserColumnResizingType _columnResizing;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSSize _columnSize;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _columnsAutosaveName;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected SEL _doubleAction;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _firstVisibleColumn;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _hasHorizontalScroller;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSScroller* _horizontalScroller;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _isLoaded;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _isTitled;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _lastColumnLoaded;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSTimeInterval _lastKeyPressed;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _lastVisibleColumn;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _maxVisibleColumns;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected CGFloat _minColumnWidth;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _passiveDelegate;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _pathSeparator;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _prefersAllColumnUserResizing;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _reusesColumns;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSRect _scrollerRect;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _sendsActionOnAlphaNumericalKeys;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _sendsActionOnArrowKeys;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _separatesColumns;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _skipUpdateScroller;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _takesTitleFromPreviousColumn;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _target;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Up