From 1413739842750c89d7a29a1f04ef587d73dd2edb Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Sat, 30 Nov 2013 20:14:11 +0000 Subject: Formatting. --- Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m index 995c6588..86cc2a2c 100644 --- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m @@ -228,7 +228,6 @@ return result; } - - (CGFloat)minimumWidthOfTabCell:(PSMTabBarCell *)cell { CGFloat resultWidth = 0.0f; @@ -309,6 +308,7 @@ - (NSAttributedString *)attributedObjectCountValueForTabCell:(PSMTabBarCell *)cell { NSString *contents = [NSString stringWithFormat:@"%lu", (unsigned long)[cell count]]; + return [[[NSMutableAttributedString alloc] initWithString:contents attributes:_objectCountStringAttributes] autorelease]; } @@ -477,8 +477,6 @@ [NSGraphicsContext restoreGraphicsState]; } - - // Step 3 - (void)drawTabCell:(PSMTabBarCell *)cell { @@ -702,7 +700,6 @@ } - // Step 4 - (void)drawInteriorWithTabCell:(PSMTabBarCell *)cell inView:(NSView*)controlView { @@ -748,7 +745,8 @@ // scoot label over insetLabelWidth += iconRect.size.width + kPSMTabBarCellPadding; - } else { + } + else { insetLabelWidth += [sequelProCloseButton size].width + kPSMTabBarCellPadding; } @@ -793,7 +791,6 @@ // draw label [[cell attributedStringValue] drawInRect:labelRect]; } - #pragma mark - -- cgit v1.2.3