Am trying to replace cell in an NSImageView subclass. I don't think the cell code much matters here - here's the image code.
No matter what I do, all I get is
*** -[NSImageCell setImageCell:]: selector not recognized
Exception raised during posting of notification. Ignored. exception: *** -[NSImageCell setImageCell:]: selector not recognized
ideas? I'm just about to rewrite the whole thing into a custom control (ick). The cell incidentally works just fine in an NSMatrix control, just for what it's worth.
OSX 10.3, xCode 1.5. Have been searching archives last 2 hours, no leads. This is the best I've gotten so far.
@implementation WGDBImageView
+ (Class) cellClass { return [WGDBImageCell class]; }
+ (void)initialize {
if (self == [WGDBImageView class]) { [self setCellClass:[WGDBImageCell class]]; }
}
-setImageCell:(id)_link {
WGDBImageView* qc = [self cell];
return [qc setImageCell:_link];
};
-(id)imageCell{
WGDBImageView* qc = [self cell];
return [qc imageCell];
};
@end
____________________________________