aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowAdditions.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-09-21 19:45:31 +0000
committerstuconnolly <stuart02@gmail.com>2010-09-21 19:45:31 +0000
commitfdb1acef702128747b8bb1a9b4d089ac5be7e945 (patch)
treed13992ec5a3aa7931256e6b4d50bccd50e98c13a /Source/SPWindowAdditions.m
parentac4cc3dec0eb6207d487159e7b40ef18fde519a0 (diff)
downloadsequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.tar.gz
sequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.tar.bz2
sequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.zip
Add missing SVN properties and general comments tidy up.
Diffstat (limited to 'Source/SPWindowAdditions.m')
-rw-r--r--Source/SPWindowAdditions.m22
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/SPWindowAdditions.m b/Source/SPWindowAdditions.m
index f5c77919..90a7ce79 100644
--- a/Source/SPWindowAdditions.m
+++ b/Source/SPWindowAdditions.m
@@ -28,11 +28,9 @@
@implementation NSWindow (SPWindowAdditions)
-// -------------------------------------------------------------------------------
-// toolbarHeight
-//
-// Returns the height of the currently visible toolbar.
-// -------------------------------------------------------------------------------
+/**
+ * Returns the height of the currently visible toolbar.
+ */
- (CGFloat)toolbarHeight
{
NSRect windowFrame;
@@ -47,11 +45,9 @@
return toolbarHeight;
}
-// -------------------------------------------------------------------------------
-// resizeForContentView:titleBarVisible
-//
-// Resizes this window to the size of the supplied view.
-// -------------------------------------------------------------------------------
+/**
+ * Resizes this window to the size of the supplied view.
+ */
- (void)resizeForContentView:(NSView *)view titleBarVisible:(BOOL)visible
{
NSSize viewSize = [view frame].size;
@@ -76,9 +72,9 @@
[self setFrame:frame display:YES animate:YES];
}
-// -------------------------------------------------------------------------------
-// Three finger multi-touch right/left swipe event to go back/forward in table history.
-// -------------------------------------------------------------------------------
+/**
+ * Three finger multi-touch right/left swipe event to go back/forward in table history.
+ */
- (void)swipeWithEvent:(NSEvent *)anEvent
{
if([[self delegate] isKindOfClass:[SPDatabaseDocument class]]