cog/FileTree/PathNode.h

44 lines
657 B
C
Raw Normal View History

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>
@class FileTreeDataSource;
2006-09-02 16:09:20 +00:00
@interface PathNode : NSObject
{
FileTreeDataSource *dataSource;
NSURL *url;
NSString *display; //The pretty path to display.
NSImage *icon;
NSArray *subpaths;
2006-09-02 16:09:20 +00:00
}
- (id)initWithDataSource:(FileTreeDataSource *)ds url:(NSURL *)u;
2006-09-02 16:09:20 +00:00
- (NSURL *)URL;
- (void)setURL:(NSURL *)url;
- (void)processPaths: (NSArray *)contents;
- (NSArray *)subpaths;
- (void)setSubpaths:(NSArray *)s;
- (NSString *)display;
- (NSImage *)icon;
- (BOOL)isLeaf;
2006-09-02 16:09:20 +00:00
- (void)updatePath;
2007-10-15 23:18:58 +00:00
2006-09-02 16:09:20 +00:00
@end