aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowAdditions.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
committerrowanbeentje <rowan@beent.je>2010-01-09 01:38:23 +0000
commit9004533ba1d84d670a77cbfc9eae401b66e9dd0e (patch)
tree8d16781c788a964e45102b66ffc04b77fa1fb9e9 /Source/SPWindowAdditions.m
parentfcb6ce6cbb0bd4179e22a3dd17dd12e4a3529cdd (diff)
downloadsequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.gz
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.tar.bz2
sequelpro-9004533ba1d84d670a77cbfc9eae401b66e9dd0e.zip
- Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for release builds, including a large number of 64bit compatibility upgrades and tweaks
- Upgrade RegexKitLite to 3.3
Diffstat (limited to 'Source/SPWindowAdditions.m')
-rw-r--r--Source/SPWindowAdditions.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPWindowAdditions.m b/Source/SPWindowAdditions.m
index 105e2bd7..b04562e3 100644
--- a/Source/SPWindowAdditions.m
+++ b/Source/SPWindowAdditions.m
@@ -32,10 +32,10 @@
//
// Returns the height of the currently visible toolbar.
// -------------------------------------------------------------------------------
-- (float)toolbarHeight
+- (CGFloat)toolbarHeight
{
NSRect windowFrame;
- float toolbarHeight = 0.0;
+ CGFloat toolbarHeight = 0.0;
if (([self toolbar]) && ([[self toolbar] isVisible])) {
windowFrame = [NSWindow contentRectForFrameRect:[self frame] styleMask:[self styleMask]];
@@ -60,7 +60,7 @@
viewSize.height = [self contentMinSize].height;
}
- float newHeight = (viewSize.height + [self toolbarHeight]);
+ CGFloat newHeight = (viewSize.height + [self toolbarHeight]);
// If the title bar is visible add 22 pixels to new height of window.
if (visible) {