cog/FileDrawer/FileIconCell.m

27 lines
416 B
Objective-C

//
// FileIconTextCell.m
// Cog
//
// Created by Zaphod Beeblebrox on 8/20/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#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