- First i changed my
NSTableView
to view based and created anIBOutlet
of myNSTableView
. - Then i dragged the
Image & Text Table Cell View
to it. - After that i changed the
NSImageView
that's inside that cell view to my customNSImageView
subclass: 'PVAsyncImageView'. - I imported it on my .h.
And i have this code:
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
NSTableCellView *result = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];
[[result imageView] downloadImageFromURL:@"lol"];
return result;
}
But it's not recognizing downloadImageFromURL
(a method from my NSImageView
subclass). Xcode gives me an error.
Any thoughts?