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





TTObjBrowser




Inherits From: NSObject
Declared In: <ObjBrowser/TTObjBrowser.h>




Class Description

This is the main OB driver class.  To browse an object $obj, simply do:

set ob [TTObjBrowser browseFromObject: $obj]




Method Types

Convenience methods + getImageNamed:
+ browseFromObject:
Running OB initForCell:
initForObject:
run
Creating cells newCellForObject:




Class Methods

getImageNamed:
+ (NSImage*)getImageNamed:(NSString *)n

If the image named n already exits, it is returned.  Otherwise, searches ObjBrowser framework for the image.




browseFromObject:

+ (TTObjBrowser*)browseFromObject:(id)obj

Creates a browser with the root node obj.




Instance Methods

initForCell:
  initForCell:(TTOBCell*)cell

Initializes the OB for the specified cell, i.e., the cell is used as the root cell in the browser.

See also:  -initForObject:




initForObject:

  initForObject:obj

Creates a cell for the specified object, and invokes -initForCell:.

See also:  -initForCell:




newCellForObject:

  (TTOBCell*)newCellForObject:(id)o

Creates an autoreleased OB cell for the specified object.  The cell object is created by sending the -newCellForBrowser: message to o.  The default implementation of -newCellForBrowser: invokes o's -obGetCellClassName to obtain the name of the cell class, which is then allocated and initialized.  I.e., to specify which OB cell class is to be used for your object, just override -obGetCellClassName.

See also:  NSObject(TTObjBrowsing) category




run

  (void)run

Runs the OB.  The OB window will appear on the screen and the OB will become active.




###