NSImageView and custom cells....
NSImageView and custom cells....
- Subject: NSImageView and custom cells....
- From: Teunis Peters <email@hidden>
- Date: Thu, 26 May 2005 00:52:00 -0700
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden