Skip to content

Commit b0090ce

Browse files
David CatmullDavid Catmull
authored andcommitted
help text member
1 parent fb6abc7 commit b0090ce

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

PBGitSidebarController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(PBSourceViewCe
342342
[cell setImage:[item icon]];
343343
}
344344

345+
- (NSString *)outlineView:(NSOutlineView *)outlineView toolTipForCell:(NSCell *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tc item:(id)item mouseLocation:(NSPoint)mouseLocation
346+
{
347+
return [item helpText];
348+
}
349+
345350
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item
346351
{
347352
return ![item isGroupItem];

PBSourceViewItem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@interface PBSourceViewItem : NSObject {
1515
NSMutableArray *children;
1616

17-
NSString *title;
17+
NSString *title, *helpText;
1818
PBGitRevSpecifier *revSpecifier;
1919
PBSourceViewItem *parent;
2020

@@ -43,6 +43,7 @@
4343
- (PBGitRef *) ref;
4444

4545
@property(retain) NSString *title;
46+
@property(retain) NSString *helpText;
4647
@property(readonly) NSMutableArray *children;
4748
@property(assign) BOOL isGroupItem, isUncollapsible;
4849
@property(retain) PBGitRevSpecifier *revSpecifier;

0 commit comments

Comments
 (0)