mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
hook up helpText; works with tags
This commit is contained in:
@@ -326,6 +326,7 @@ NSString* PBGitRepositoryErrorDomain = @"GitXErrorDomain";
|
||||
PBGitRef *newRef = [PBGitRef refFromString:[components objectAtIndex:0]];
|
||||
PBGitRevSpecifier *revSpec = [[PBGitRevSpecifier alloc] initWithRef:newRef];
|
||||
|
||||
[revSpec setHelpText:[self helpTextForRef:newRef]];
|
||||
[self addBranch:revSpec];
|
||||
[self addRef:newRef fromParameters:components];
|
||||
[oldBranches removeObject:revSpec];
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
@interface PBGitRevSpecifier : NSObject <NSCopying> {
|
||||
NSString *description;
|
||||
NSString *helpText;
|
||||
NSArray *parameters;
|
||||
NSURL *workingDirectory;
|
||||
BOOL isSimpleRef;
|
||||
@@ -36,6 +37,7 @@
|
||||
+ (PBGitRevSpecifier *)localBranchesRevSpec;
|
||||
|
||||
@property(retain) NSString *description;
|
||||
@property(retain) NSString *helpText;
|
||||
@property(readonly) NSArray *parameters;
|
||||
@property(retain) NSURL *workingDirectory;
|
||||
@property(readonly) BOOL isSimpleRef;
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
|
||||
@implementation PBGitRevSpecifier
|
||||
|
||||
@synthesize parameters, description, workingDirectory;
|
||||
@synthesize parameters, description, helpText, workingDirectory;
|
||||
@synthesize isSimpleRef;
|
||||
@synthesize behind,ahead;
|
||||
|
||||
|
||||
@@ -344,7 +344,7 @@ static NSString * const kObservingContextSubmodules = @"submodulesChanged";
|
||||
|
||||
- (NSString *)outlineView:(NSOutlineView *)outlineView toolTipForCell:(NSCell *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tc item:(id)item mouseLocation:(NSPoint)mouseLocation
|
||||
{
|
||||
return [item helpText];
|
||||
return [[item revSpecifier] helpText];
|
||||
}
|
||||
|
||||
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item
|
||||
|
||||
+1
-2
@@ -14,7 +14,7 @@
|
||||
@interface PBSourceViewItem : NSObject {
|
||||
NSMutableArray *children;
|
||||
|
||||
NSString *title, *helpText;
|
||||
NSString *title;
|
||||
PBGitRevSpecifier *revSpecifier;
|
||||
PBSourceViewItem *parent;
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
- (PBGitRef *) ref;
|
||||
|
||||
@property(retain) NSString *title;
|
||||
@property(retain) NSString *helpText;
|
||||
@property(readonly) NSMutableArray *children;
|
||||
@property(assign) BOOL isGroupItem, isUncollapsible;
|
||||
@property(retain) PBGitRevSpecifier *revSpecifier;
|
||||
|
||||
Reference in New Issue
Block a user