2006-09-02 16:09:20 +00:00
|
|
|
//
|
|
|
|
// Node.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 8/20/2006.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2007-10-15 03:29:30 +00:00
|
|
|
@class FileTreeDataSource;
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
@interface PathNode : NSObject {
|
2007-10-15 03:29:30 +00:00
|
|
|
FileTreeDataSource *dataSource;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
NSURL *url;
|
2022-02-07 05:49:27 +00:00
|
|
|
NSString *display; // The pretty path to display.
|
|
|
|
|
2007-10-14 23:24:54 +00:00
|
|
|
NSImage *icon;
|
|
|
|
|
|
|
|
NSArray *subpaths;
|
2006-09-02 16:09:20 +00:00
|
|
|
}
|
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
- (id)initWithDataSource:(FileTreeDataSource *)ds url:(NSURL *)u;
|
2006-09-02 16:09:20 +00:00
|
|
|
|
2008-02-20 01:01:15 +00:00
|
|
|
- (NSURL *)URL;
|
2007-10-16 01:22:57 +00:00
|
|
|
- (void)setURL:(NSURL *)url;
|
2007-10-14 23:24:54 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)processPaths:(NSArray *)contents;
|
2007-10-14 23:24:54 +00:00
|
|
|
|
|
|
|
- (NSArray *)subpaths;
|
|
|
|
- (void)setSubpaths:(NSArray *)s;
|
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
- (NSString *)display;
|
2009-08-16 16:49:34 +00:00
|
|
|
- (void)setDisplay:(NSString *)s;
|
|
|
|
|
2007-10-14 23:24:54 +00:00
|
|
|
- (NSImage *)icon;
|
|
|
|
|
|
|
|
- (BOOL)isLeaf;
|
2006-09-02 16:09:20 +00:00
|
|
|
|
2008-02-18 03:27:59 +00:00
|
|
|
- (void)updatePath;
|
|
|
|
|
2006-09-02 16:09:20 +00:00
|
|
|
@end
|