aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-02-16 22:03:09 +0000
committerstuconnolly <stuart02@gmail.com>2013-02-16 22:03:09 +0000
commit27156550b646a74d2345b4ff9650b7a3b4ba052e (patch)
tree4f2608744fcef3524e1c208d860452a120e1a4ce /Source/SPWindowControllerDelegate.m
parent624244dd35a6ca2e7942fbadbcaea756367b3453 (diff)
downloadsequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.tar.gz
sequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.tar.bz2
sequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.zip
Fix more wanrings by creating a protocol that delegates of the copy table should conform to.
Diffstat (limited to 'Source/SPWindowControllerDelegate.m')
-rw-r--r--Source/SPWindowControllerDelegate.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPWindowControllerDelegate.m b/Source/SPWindowControllerDelegate.m
index ef52d4ef..a9124207 100644
--- a/Source/SPWindowControllerDelegate.m
+++ b/Source/SPWindowControllerDelegate.m
@@ -407,10 +407,13 @@
// Draw the background flipped, which is actually the right way up
NSAffineTransform *transform = [NSAffineTransform transform];
+
[transform translateXBy:0.0f yBy:[[[self window] contentView] frame].size.height];
[transform scaleXBy:1.0f yBy:-1.0f];
+
[transform concat];
- [(id <PSMTabStyle>)[[aTabView delegate] style] drawBackgroundInRect:tabFrame];
+ [(id <PSMTabStyle>)[(PSMTabBarControl *)[aTabView delegate] style] drawBackgroundInRect:tabFrame];
+
[viewImage unlockFocus];
return [viewImage autorelease];