This is myBrowserCell.m in view mode; [Download] [Up]
#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];
}
@endThese are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.