Caged / gitnub

A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.

This URL has Read+Write access

Caged (author)
Thu Oct 16 12:16:26 -0700 2008
commit  64cefa238db1d5ad62f0560378ddd9cdbfbbfe16
tree    f477be0c974d2ba1b9c48f535ae3742d33fc9d2b
parent  f1c2cee2dc44bd83ee95217d578b68e561a3c67f
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