Cog/FileTree/FileIconCell.m
Christopher Snowhill 099588b7bd Restore the File Tree, now with a chooser button
Revert "Remove the file tree, as Sandbox does not permit"

This reverts commit 35400e1320.

This also changes how the File Tree choosing works.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-30 16:59:35 -07:00

23 lines
466 B
Objective-C

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