aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-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.