2006-09-02 12:09:20 -04:00
|
|
|
//
|
|
|
|
// FileIconTextCell.m
|
|
|
|
// Cog
|
|
|
|
//
|
2006-09-04 14:46:18 -04:00
|
|
|
// Created by Vincent Spader on 8/20/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
2006-09-02 12:09:20 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "FileIconCell.h"
|
2007-10-15 00:29:30 -03:00
|
|
|
#import "PathNode.h"
|
2006-09-02 12:09:20 -04:00
|
|
|
|
|
|
|
@implementation FileIconCell
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
- (void)setObjectValue:(PathNode *)o {
|
|
|
|
if([o respondsToSelector:@selector(icon)] && [o respondsToSelector:@selector(display)]) {
|
2007-10-15 22:22:57 -03:00
|
|
|
[super setObjectValue:[o display]];
|
2022-02-07 02:49:27 -03:00
|
|
|
[super setImage:[o icon]];
|
|
|
|
} else {
|
2007-10-15 22:22:57 -03:00
|
|
|
[super setObjectValue:(id)o];
|
2006-09-02 12:09:20 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|