aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/PSMTabBarCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarCell.m')
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarCell.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarCell.m b/Frameworks/PSMTabBar/PSMTabBarCell.m
index 94b22021..ab330c5c 100644
--- a/Frameworks/PSMTabBar/PSMTabBarCell.m
+++ b/Frameworks/PSMTabBar/PSMTabBarCell.m
@@ -37,6 +37,7 @@
_countColor = nil;
_isEdited = NO;
_isPlaceholder = NO;
+ _backgroundColor = nil;
}
return self;
}
@@ -64,6 +65,7 @@
_count = 0;
_countColor = nil;
_isEdited = NO;
+ _backgroundColor = nil;
if (value) {
[self setCurrentStep:(kPSMTabDragAnimationSteps - 1)];
@@ -81,6 +83,7 @@
[_indicator removeFromSuperviewWithoutNeedingDisplay];
[_indicator release];
+ [_backgroundColor release];
[super dealloc];
}
@@ -307,6 +310,17 @@
//[_controlView update:[[self controlView] automaticallyAnimates]]; // binding notice is too fast
}
+- (NSColor *)backgroundColor {
+ return _backgroundColor;
+}
+
+- (void)setBackgroundColor:(NSColor *)aColor
+{
+ [aColor retain];
+ [_backgroundColor release];
+ _backgroundColor = aColor;
+}
+
#pragma mark -
#pragma mark Bindings