aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-05-21 22:53:10 +0000
committerrowanbeentje <rowan@beent.je>2013-05-21 22:53:10 +0000
commit2737ac00c38513d976fda08104a5014221b0c99c (patch)
tree38829f7d5d9982b9648259cae0a269ef1640dd18 /Frameworks/PSMTabBar
parent9432986de1d25527b133715ab12a8dffc2c5f6b6 (diff)
downloadsequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.gz
sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.bz2
sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.zip
- Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to enable some more
Diffstat (limited to 'Frameworks/PSMTabBar')
-rw-r--r--Frameworks/PSMTabBar/PSMOverflowPopUpButton.h2
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarCell.m12
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarControl.m15
3 files changed, 14 insertions, 15 deletions
diff --git a/Frameworks/PSMTabBar/PSMOverflowPopUpButton.h b/Frameworks/PSMTabBar/PSMOverflowPopUpButton.h
index b513865e..8c81207f 100644
--- a/Frameworks/PSMTabBar/PSMOverflowPopUpButton.h
+++ b/Frameworks/PSMTabBar/PSMOverflowPopUpButton.h
@@ -26,8 +26,6 @@
- (void)notificationReceived:(NSNotification *)notification;
// Animations
-- (void)setAnimatingAlternateImage:(BOOL)flag;
-- (BOOL)animatingAlternateImage;
- (void)animateStep:(NSTimer *)timer;
// archiving
diff --git a/Frameworks/PSMTabBar/PSMTabBarCell.m b/Frameworks/PSMTabBar/PSMTabBarCell.m
index 809d9061..94b22021 100644
--- a/Frameworks/PSMTabBar/PSMTabBarCell.m
+++ b/Frameworks/PSMTabBar/PSMTabBarCell.m
@@ -153,7 +153,7 @@
- (NSAttributedString *)attributedStringValue
{
- return [(id <PSMTabStyle>)[_controlView style] attributedStringValueForTabCell:self];
+ return [[(PSMTabBarControl *)_controlView style] attributedStringValueForTabCell:self];
}
- (NSInteger)tabState
@@ -323,22 +323,22 @@
- (NSRect)indicatorRectForFrame:(NSRect)cellFrame
{
- return [(id <PSMTabStyle>)[_controlView style] indicatorRectForTabCell:self];
+ return [[(PSMTabBarControl *)_controlView style] indicatorRectForTabCell:self];
}
- (NSRect)closeButtonRectForFrame:(NSRect)cellFrame
{
- return [(id <PSMTabStyle>)[_controlView style] closeButtonRectForTabCell:self withFrame:cellFrame];
+ return [[(PSMTabBarControl *)_controlView style] closeButtonRectForTabCell:self withFrame:cellFrame];
}
- (CGFloat)minimumWidthOfCell
{
- return [(id <PSMTabStyle>)[_controlView style] minimumWidthOfTabCell:self];
+ return [[(PSMTabBarControl *)_controlView style] minimumWidthOfTabCell:self];
}
- (CGFloat)desiredWidthOfCell
{
- return [(id <PSMTabStyle>)[_controlView style] desiredWidthOfTabCell:self];
+ return [[(PSMTabBarControl *)_controlView style] desiredWidthOfTabCell:self];
}
#pragma mark -
@@ -354,7 +354,7 @@
return;
}
- [(id <PSMTabStyle>)[_controlView style] drawTabCell:self];
+ [[(PSMTabBarControl *)_controlView style] drawTabCell:self];
}
#pragma mark -
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m
index 6a062efe..ffac0255 100644
--- a/Frameworks/PSMTabBar/PSMTabBarControl.m
+++ b/Frameworks/PSMTabBar/PSMTabBarControl.m
@@ -363,22 +363,23 @@
{
id <PSMTabStyle> newStyle;
- if ([name isEqualToString:@"Aqua"]) {
- //newStyle = [[PSMAquaTabStyle alloc] init];
+/* if ([name isEqualToString:@"Aqua"]) {
+ newStyle = [[PSMAquaTabStyle alloc] init];
} else if ([name isEqualToString:@"Unified"]) {
- //newStyle = [[PSMUnifiedTabStyle alloc] init];
+ newStyle = [[PSMUnifiedTabStyle alloc] init];
} else if ([name isEqualToString:@"Adium"]) {
- //newStyle = [[PSMAdiumTabStyle alloc] init];
+ newStyle = [[PSMAdiumTabStyle alloc] init];
} else if ([name isEqualToString:@"Card"]) {
- //newStyle = [[PSMCardTabStyle alloc] init];
+ newStyle = [[PSMCardTabStyle alloc] init];
} else if ([name isEqualToString:@"Metal"]) {
- //newStyle = [[PSMMetalTabStyle alloc] init];
+ newStyle = [[PSMMetalTabStyle alloc] init];
- } else if ([name isEqualToString:@"SequelPro"]) {
+ } else */
+ if ([name isEqualToString:@"SequelPro"]) {
newStyle = [[PSMSequelProTabStyle alloc] init];
} else {