We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
gitnub / GNFileSystemItem.h
100644 30 lines (25 sloc) 0.685 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// GNFileSystemItem.h
//
// Based on code examples in NSOutlineView documentation.
 
#import <Cocoa/Cocoa.h>
 
 
@interface GNFileSystemItem : NSObject
{
    NSString *relativePath;
    GNFileSystemItem *parent;
    NSMutableArray *children;
    NSImage *image;
}
 
+ (GNFileSystemItem *)rootItem;
+ (NSString *)repoRoot;
- (int)numberOfChildren;// Returns -1 for leaf nodes
- (GNFileSystemItem *)childAtIndex:(int)n;// Invalid to call on leaf nodes
- (NSString *)fullPath;
- (NSString *)relativePath;
- (void)setRelativePath:(NSString *)aString;
- (NSImage*)icon;
- (BOOL)isLeafNode;
- (NSDictionary*)attributes;
- (BOOL)isHeading;
// - (BOOL)ignoredByGit:(NSString *)fileItem;
@end