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 !
danudey (author)
Tue Jul 21 13:51:37 -0700 2009
Caged (committer)
Tue Jul 21 15:19:07 -0700 2009
commit  b23158d8483762fb849fe477233ce6851fbf8e8d
tree    122011c7c1ec20e1cab41c05e84bbe114a30dd93
parent  2f4522c15c8f4734ea7db07f4c355ade06a3f619
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