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"
|
|
|
|
|
|
|
|
|
|
|
|
@implementation FileIconCell
|
|
|
|
|
|
|
|
- (void)setObjectValue:(id)o
|
|
|
|
{
|
|
|
|
if ([o respondsToSelector:@selector(icon)]) {
|
|
|
|
[super setObjectValue:[[o path] lastPathComponent]];
|
|
|
|
[super setImage: [o icon]];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
[super setObjectValue:o];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|