Skip to content

Instantly share code, notes, and snippets.

@preble
Created June 29, 2010 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preble/457967 to your computer and use it in GitHub Desktop.
Save preble/457967 to your computer and use it in GitHub Desktop.
Index: Framework/BGHUDTableViewHeaderCell.m
===================================================================
--- Framework/BGHUDTableViewHeaderCell.m
+++ Framework/BGHUDTableViewHeaderCell.m
@@ -73,7 +73,7 @@
}
- (void)_drawThemeContents:(NSRect)frame highlighted:(BOOL)flag inView:(id)view {
-
+
//Draw base layer
[[[[BGThemeManager keyedManager] themeForKey: self.themeKey] tableHeaderCellBorderColor] set];
NSRectFill(frame);
@@ -139,6 +139,10 @@
- (void)drawSortIndicatorWithFrame:(NSRect) frame inView:(id) controlView ascending:(BOOL) ascFlag priority:(NSInteger) priInt {
+ static BOOL nested = NO;
+ if (nested)
+ return;
+
frame.origin.y -=1;
frame.size.height += 2;
@@ -177,7 +181,12 @@
frame.origin.y += 1;
frame.size.height -= 2;
- //[super drawInteriorWithFrame: frame inView: controlView];
+ if (priInt == 0)
+ {
+ nested = YES;
+ [super drawInteriorWithFrame: frame inView: controlView];
+ nested = NO;
+ }
}
#pragma mark -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment