cog/FileDrawer/PathNode.h

45 lines
744 B
Objective-C

//
// 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.
NSImage *icon;
NSArray *subpaths;
}
- (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;
- (NSImage *)icon;
- (BOOL)isLeaf;
- (void)startWatching;
- (void)stopWatching;
- (void)updatePathNotification:(NSNotification *)notification;
@end