Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSBrowserCell

Inherits From:	NSCell : NSObject

Conforms To:	NSCoding, NSCopying (NSCell)
NSObject (NSObject)

Declared In:	AppKit/NSBrowserCell.h 

Class Description

NSBrowserCell is the subclass of NSCell used by default to display data in the columns of an NSBrowser. (Each column contains an NSMatrix filled with NSBrowserCells.) Many of NSBrowserCell's methods are designed to interact with NSBrowser and NSBrowser's delegate. The delegate implements methods for loading the NSCells in NSBrowser by setting their values and status. If your code needs access to a specific NSBrowserCell, you can use the NSBrowser method loadedCellAtRow:column:.

You may find it useful to create a subclass of NSBrowserCell to alter its behavior and to enable it to work with and display the type of data you wish to represent. Use NSBrowser's setCellClass: or setCellPrototype: methods to have it use your subclass.

See the NSBrowser class specification for more details. In particular, the class description and the ªMethods Implemented by the Delegateº section describe how the NSBrowser's delegate interacts with both NSBrowser and NSBrowserCells.

Accessing Graphic Attributes 

+ (NSImage *)branchImage	Returns the default NSImage for branch NSBrowserCells.

+ (NSImage *)highlightedBranchImage	Returns the default NSImage for branch NSBrowserCells that are highlighted.

- (NSImage *)alternateImage	Returns this NSBrowserCell's image for the highlighted state.

- (void)setAlternateImage:(NSImage *)anImage	Sets this NSBrowserCell's image for the highlighted state.

Placing in the Browser Hierarchy 

- (BOOL)isLeaf	Returns whether the NSBrowserCell is a leaf or a branch.

- (void)setLeaf:(BOOL)flag	Sets whether the NSBrowserCell is a leaf or a branch.

Determining Loaded Status 

- (BOOL)isLoaded	Returns YES if all the NSBrowserCell's state has been set and the cell is ready to display.

- (void)setLoaded:(BOOL)flag	Sets whether all the NSBrowserCell's state has been set and the cell is ready to display.

Setting State 

- (void)reset	Unhighlights the NSBrowserCell and sets its state to 0.

- (void)set	Highlights the NSBrowserCell and sets its state to 1.