home *** CD-ROM | disk | FTP | other *** search
- #import "myBrowserCell.h"
- // Created By James T. Romano July 22, 1992
- // Member of the Dynamic Duo of NeXT Computers!
- //
- //
- // Read it and Weep!
-
- @implementation myBrowserCell
-
- - drawInside:(const NXRect *)cellFrame inView:controlView
- {
- id theBrowserDelegate;
- int row,col;
-
- if (![self isLoaded])
- {
- theBrowserDelegate = [[[[controlView superview] superview] superview] delegate];
- [controlView getRow: &row andCol: &col ofCell:self];
- [theBrowserDelegate browser:nil loadCell:self atRow:row inColumn: col];
- }
- return [super drawInside: cellFrame inView: controlView];
- }
-
- - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)lit
- {
- id theBrowserDelegate;
- int row,col;
-
- if (![self isLoaded])
- {
- theBrowserDelegate = [[[[controlView superview] superview] superview] delegate];
- [controlView getRow:&row andCol:&col ofCell:self];
- [theBrowserDelegate browser:nil loadCell:self atRow:row inColumn:col];
- }
- return [super highlight:cellFrame inView:controlView lit:lit];
- }
- @end