cog/FileTree/FileIconCell.m

26 lines
469 B
Matlab
Raw Normal View History

2006-09-02 16:09:20 +00:00
//
// FileIconTextCell.m
// Cog
//
// Created by Vincent Spader on 8/20/06.
// Copyright 2006 Vincent Spader. All rights reserved.
2006-09-02 16:09:20 +00:00
//
#import "FileIconCell.h"
#import "PathNode.h"
2006-09-02 16:09:20 +00:00
@implementation FileIconCell
- (void)setObjectValue:(PathNode *)o
2006-09-02 16:09:20 +00:00
{
if ([o respondsToSelector:@selector(icon)] && [o respondsToSelector:@selector(display)]) {
[super setObjectValue:[o display]];
2006-09-02 16:09:20 +00:00
[super setImage: [o icon]];
}
else {
[super setObjectValue:(id)o];
2006-09-02 16:09:20 +00:00
}
}
@end