aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryConsole.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-02-28 02:59:39 +0000
committerstuconnolly <stuart02@gmail.com>2009-02-28 02:59:39 +0000
commitb8c9157be916c058f867e24e1d087271de022047 (patch)
treebc61c56d1d4f2a1323299540aedf4fc506ca885c /Source/SPQueryConsole.m
parent497aa0b00521383ca497db4c1c42b63b3fb32f9d (diff)
downloadsequelpro-b8c9157be916c058f867e24e1d087271de022047.tar.gz
sequelpro-b8c9157be916c058f867e24e1d087271de022047.tar.bz2
sequelpro-b8c9157be916c058f867e24e1d087271de022047.zip
Reduce the amount of padding on the new console panel and also auto save its position. Thanks to Rowan for suggesting these.
Diffstat (limited to 'Source/SPQueryConsole.m')
-rw-r--r--Source/SPQueryConsole.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m
index 34391119..1fe62d65 100644
--- a/Source/SPQueryConsole.m
+++ b/Source/SPQueryConsole.m
@@ -25,6 +25,8 @@
#define DEFAULT_CONSOLE_LOG_FILENAME @"untitled"
#define DEFAULT_CONSOLE_LOG_FILE_EXTENSION @"log"
+#define CONSOLE_WINDOW_AUTO_SAVE_NAME @"QueryConsole"
+
@interface SPQueryConsole (PrivateAPI)
- (void)_appendMessageToConsole:(NSString *)message withColor:(NSColor *)color;
@@ -34,6 +36,16 @@
@implementation SPQueryConsole
// -------------------------------------------------------------------------------
+// awakeFromNib
+//
+// Set the window's auto save name.
+// -------------------------------------------------------------------------------
+- (void)awakeFromNib
+{
+ [self setWindowFrameAutosaveName:CONSOLE_WINDOW_AUTO_SAVE_NAME];
+}
+
+// -------------------------------------------------------------------------------
// clearConsole:
//
// Clears the console by setting its displayed text to an empty string.