ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSBrowserCell.rtf

This is NSBrowserCell.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSBrowserCell
pard s14 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSCell : NSObject
fs20 
fs28 s7 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding, NSCopying (NSCell)
fi0 NSObject (NSObject)
fs20 
fs28 s8 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSBrowserCell.h 
fs20 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 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'27s methods are designed to interact with NSBrowser and NSBrowser'27s 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 b loadedCellAtRow:column:b0 .
fs16 
fs28 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'27s b setCellClass:b0  or b setCellPrototype: b0 methods to have it use your subclass.
fs16 
fs28 See the NSBrowser class specification for more details. In particular, the class description and the 'aaMethods Implemented by the Delegate'ba section describe how the NSBrowser'27s delegate interacts with both NSBrowser and NSBrowserCells.
fs16 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs24 
fs28 Accessing Graphic Attributes 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 + (NSImage *)b branchImageb0 tab Returns the default NSImage for branch NSBrowserCells.
fi-6552 fs16 
fs28 fi-6552 + (NSImage *)b highlightedBranchImageb0 tab Returns the default NSImage for branch NSBrowserCells that are highlighted.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSImage *)b alternateImageb0 tab Returns this NSBrowserCell'27s image for the highlighted state.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setAlternateImage:b0 (NSImage *)i anImagei0 tab Sets this NSBrowserCell'27s image for the highlighted state.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Placing in the Browser Hierarchy 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (BOOL)b isLeafb0 tab Returns whether the NSBrowserCell is a leaf or a branch.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setLeaf:b0 (BOOL)i flagi0 tab Sets whether the NSBrowserCell is a leaf or a branch.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Determining Loaded Status 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (BOOL)b isLoadedb0 tab Returns YES if all the NSBrowserCell'27s state has been set and the cell is ready to display.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setLoaded:b0 (BOOL)i flagi0 tab Sets whether all the NSBrowserCell'27s state has been set and the cell is ready to display.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Setting State 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b resetb0 tab Unhighlights the NSBrowserCell and sets its state to 0.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setb0 tab Highlights the NSBrowserCell and sets its state to 1.
fi-6552 fs16 
fs28 fi-6552 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.