hook up helpText; works with tags

This commit is contained in:
David Catmull
2011-05-14 10:53:42 -06:00
parent 43e3d46b13
commit 1d24c1dff3
5 changed files with 6 additions and 4 deletions
+1
View File
@@ -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];
+2
View File
@@ -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
View File
@@ -11,7 +11,7 @@
@implementation PBGitRevSpecifier
@synthesize parameters, description, workingDirectory;
@synthesize parameters, description, helpText, workingDirectory;
@synthesize isSimpleRef;
@synthesize behind,ahead;
+1 -1
View File
@@ -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
View File
@@ -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;