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 | ![]() ![]() ![]() | |
Creating cells | ![]() |
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: |
![]() |
Initializes the OB for the specified cell, i.e., the cell is used as the root cell in the browser.
See also: -initForObject:
initForObject: |
![]() |
Creates a cell for the specified object, and invokes -initForCell:.
See also: -initForCell:
newCellForObject: |
![]() |
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 |
![]() |
Runs the OB. The OB window will appear on the screen and the OB will become active. |
###