Version 1.0, Copyright © 1996  by Daniel Böhringer.  All Rights Reserved.
Daniel Böhringer  --  Sat Mar 23 15:54:36 GMT+0100 1996


MiscSplitBrowser




Inherits From: _MiscSideSplitView : Object
Declared In: include directory



Class Description

MiscSplitBrowser is a two hierachical (e.g. master-detail-browser) as used in some newsreaders. It was designed for use with MiscTree as it's loader. If you already display two level hierarchical data in your code using NXBrowser, switching to MiscSplitBrowser should be painless. What you get is a nicer look and feel for your program. If the MiscTree contains more than two hierachies the third and following ones are ignored  (That is -getPath:toColumn: is never called with columns >1).  The superclass, _MiscSideSplitView, is a private Class.  For a vertically operating SplitView use the MiscSplitView class.

Note: Remember to connect the browser loader to the browserDelegate and not the delegate outlet.



Instance Variables

id target
id browserDelegate
SEL action
SEL doubleAction
target The object that is sent the action.
action The message that the MiscSplitBrowser sends to its target.




Method Types

Initializing the class + initialize
+ alloc
+ allocFromZone:

Matrix class + setMatrixClass:
+ matrixClass

Creating and freeing instances - initFrame:
- free

Target/ action and delegation - target
- setTarget:
- action
- sendAction
- setAction:
- doubleAction
- setDoubleAction:
- browserDelegate
- setBrowserDelegate:
- delegate
- setDelegate:

Managing the selection - selectPrevious
- selectNext
- acceptArrowKeys:andSendActionMessages:
- reestablishSelection

The NXBrowser interface - getPath:toColumn:
- setPath:
- loadColumnZero
- loadColumnZeroPreserveSel:
- matrixInColumn:
- lastColumn:
- selectedRow
- selectedColumn
- pathSeparator
- setPathSeparator:
- reloadColumn:
- selectedCell:

MiscSplitBrowser special - setDivider:
Archiving - read
- write




Note that a bare-bones documentation is in the headerfile

Class Methods

setMatrixClass:
+setMatrixClass: aMatrixClass

This method sets the matrix-class used for the two views in all newly allocated MiscSplitBrowsers . The cells used by the matrixes are always NXBrowser cells.
Note that e.g. NiftyMatrix works fine.

See also:   +

matrixClass

+matrixClass

This method returns the matrix-class .
Note that the default is the Matrix class.


Instance Methods





Methods Implemented by the Delegate