Release 5.  Copyright ©1994-1998 by TipTop Software, Inc.  All Rights Reserved.






NSObject(TTObjBrowsing)




Declared In: <ObjBrowser/TTOBCell.h>




Category Description

The implementation of TTOBCell and TTObjBrowser use this informal protocol to create cell instances, and to query objects that are browsed for cell image, category, and inspector lists.




Method Types

Cell creation - newCellForBrowser:
- obGetCellClassName
Cell categories obPopulateArrayWithSubcellCategories:
Inspectors obPopulateArray:withInspectorClassNamesForCategory:
Cell name obGetName
Cell image obGetImage
imageForViewer




Instance Methods

imageForViewer
(NSImage *) imageForViewer

If implemented, and if -obGetImage is not implemented, this method is invoked from TTOBCell's -getCellImage method to obtain an NSImage for the receiver object.

See also:  -obGetImage-getCellImage (TTOBCell)




obGetCellClassName
  (NSString *)obGetCellClassName

This method returns the class of OB cell.  This method is invoked from -newCellForBrowser:.

See also:  -newCellForBrowser:




obGetImage
(NSImage *)obGetImage

If implemented, this method is invoked from TTOBCell's -getCellImage method to obtain an NXImage for the receiver object.

See also:  -imageForViewer-getCellImage (TTOBCell)




obPopulateArray:withInspectorClassNamesForCategory:
  obPopulateArray:(NSMutableArray*)l withInspectorClassNamesForCategory:(TTOBCCategory*)cat

This method is invoked from TTOBCell's -populateArray:withInspectorClassNamesForCategory: method to obtain a list of inspector class  names applicable to the receiver object.

See also:  - populateArray:withInspectorClassNamesForCategory: (TTOBCell)




obGetName
(NSString *) obGetName

If implemented, this method is invoked from TTOBCell's -getCellName method to obtain a name for the receiver object.

See also:  -getCellName (TTOBCell)




obPopulateArrayWithSubcellCategories:
  obPopulateArrayWithSubcellCategories:(NSMutableArray*)l

This method is invoked from TTOBCell's -populateArrayWithSubcellCategories: method in order to obtain a list of cell categories.

See also:  -populateArrayWithSubcellCategories: (TTOBCell)




newCellForBrowser:
  newCellForBrowser:browser

This method is invoked from TTObjBrowser's -newCellForObject: method in order to create a cell.  The default implementation queries self for the OB cell class (-obGetCellClassName), and creates an instance of the class.

See also:  -obGetCellClassName-newCellForObject: (TTObjBrowser)




###