diff options
author | Stuart Connolly <stuart02@gmail.com> | 2013-11-30 20:14:11 +0000 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2013-11-30 20:14:11 +0000 |
commit | 1413739842750c89d7a29a1f04ef587d73dd2edb (patch) | |
tree | f3d1c0d05f1e6900c3a49cf0206222d639a089c6 /Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | |
parent | 19bde59d3eae295d907e41a4185cd487ae780123 (diff) | |
download | sequelpro-1413739842750c89d7a29a1f04ef587d73dd2edb.tar.gz sequelpro-1413739842750c89d7a29a1f04ef587d73dd2edb.tar.bz2 sequelpro-1413739842750c89d7a29a1f04ef587d73dd2edb.zip |
Formatting.
Diffstat (limited to 'Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m')
-rw-r--r-- | Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 9 |
1 files 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 - |