2022-06-30 23:57:51 +00:00
|
|
|
//
|
|
|
|
// Node.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 8/20/2006.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class FileTreeDataSource;
|
|
|
|
|
|
|
|
@interface PathNode : NSObject {
|
|
|
|
FileTreeDataSource *dataSource;
|
|
|
|
|
|
|
|
NSURL *url;
|
|
|
|
NSString *display; // The pretty path to display.
|
|
|
|
|
2022-07-07 05:39:47 +00:00
|
|
|
NSString *lastPathComponent;
|
|
|
|
|
2022-06-30 23:57:51 +00:00
|
|
|
NSImage *icon;
|
|
|
|
|
|
|
|
NSArray *subpaths;
|
2022-07-07 05:39:47 +00:00
|
|
|
|
|
|
|
NSMutableDictionary *subpathsLookup;
|
2022-06-30 23:57:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithDataSource:(FileTreeDataSource *)ds url:(NSURL *)u;
|
|
|
|
|
|
|
|
- (NSURL *)URL;
|
|
|
|
- (void)setURL:(NSURL *)url;
|
|
|
|
|
|
|
|
- (void)processPaths:(NSArray *)contents;
|
|
|
|
|
|
|
|
- (NSArray *)subpaths;
|
|
|
|
- (void)setSubpaths:(NSArray *)s;
|
|
|
|
|
|
|
|
- (NSString *)display;
|
|
|
|
- (void)setDisplay:(NSString *)s;
|
|
|
|
|
2022-07-07 05:39:47 +00:00
|
|
|
- (NSString *)lastPathComponent;
|
|
|
|
- (void)setLastPathComponent:(NSString *)s;
|
|
|
|
|
|
|
|
- (NSDictionary *)subpathsLookup;
|
|
|
|
- (void)setSubpathsLookup:(NSMutableDictionary *)d;
|
|
|
|
|
2022-06-30 23:57:51 +00:00
|
|
|
- (NSImage *)icon;
|
|
|
|
|
|
|
|
- (BOOL)isLeaf;
|
|
|
|
|
|
|
|
- (void)updatePath;
|
|
|
|
|
|
|
|
@end
|