From b8c9157be916c058f867e24e1d087271de022047 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 28 Feb 2009 02:59:39 +0000 Subject: Reduce the amount of padding on the new console panel and also auto save its position. Thanks to Rowan for suggesting these. --- Source/SPQueryConsole.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source') 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; @@ -33,6 +35,16 @@ @implementation SPQueryConsole +// ------------------------------------------------------------------------------- +// awakeFromNib +// +// Set the window's auto save name. +// ------------------------------------------------------------------------------- +- (void)awakeFromNib +{ + [self setWindowFrameAutosaveName:CONSOLE_WINDOW_AUTO_SAVE_NAME]; +} + // ------------------------------------------------------------------------------- // clearConsole: // -- cgit v1.2.3