2006-09-02 16:09:20 +00:00
|
|
|
//
|
|
|
|
// FileIconTextCell.m
|
|
|
|
// Cog
|
|
|
|
//
|
2006-09-04 18:46:18 +00:00
|
|
|
// 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"
|
2007-10-15 03:29:30 +00:00
|
|
|
#import "PathNode.h"
|
2006-09-02 16:09:20 +00:00
|
|
|
|
|
|
|
@implementation FileIconCell
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)setObjectValue:(PathNode *)o {
|
|
|
|
if([o respondsToSelector:@selector(icon)] && [o respondsToSelector:@selector(display)]) {
|
2007-10-16 01:22:57 +00:00
|
|
|
[super setObjectValue:[o display]];
|
2022-02-07 05:49:27 +00:00
|
|
|
[super setImage:[o icon]];
|
|
|
|
} else {
|
2007-10-16 01:22:57 +00:00
|
|
|
[super setObjectValue:(id)o];
|
2006-09-02 16:09:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|