aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConsoleMessage.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-14 13:23:17 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-14 13:23:17 +0000
commitffab593752dd8fbd56f7eeb0f7fa666a938ba774 (patch)
tree692fb5c1a551bda9e9289725382de3fc0a71c706 /Source/SPConsoleMessage.m
parenta4a502eedaf862dce9f22108a5f9a1454b76d72c (diff)
downloadsequelpro-ffab593752dd8fbd56f7eeb0f7fa666a938ba774.tar.gz
sequelpro-ffab593752dd8fbd56f7eeb0f7fa666a938ba774.tar.bz2
sequelpro-ffab593752dd8fbd56f7eeb0f7fa666a938ba774.zip
Bunch of improvements to the query console, including:
- New connection column (been meaning to add this for a while) - Display table view column headers - Enable table view text cell line truncating - Allow table view columns to be re-ordered - The table view now respects the display table view vertical grid lines preference - Support for including the connection when saving messages to a file - Support for showing/hiding the connection column - Increase table view row height to match that of all others - Display message time stamps using the user's system wide medium time format
Diffstat (limited to 'Source/SPConsoleMessage.m')
-rw-r--r--Source/SPConsoleMessage.m20
1 files changed, 16 insertions, 4 deletions
diff --git a/Source/SPConsoleMessage.m b/Source/SPConsoleMessage.m
index 25a00e9b..e851a9ef 100644
--- a/Source/SPConsoleMessage.m
+++ b/Source/SPConsoleMessage.m
@@ -30,26 +30,38 @@
@synthesize isError;
@synthesize messageDate;
@synthesize message;
+@synthesize messageConnection;
-+ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date
+/**
+ *
+ */
++ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date connection:(NSString *)connection
{
- return [[[SPConsoleMessage alloc] initWithMessage:message date:date] autorelease];
+ return [[[SPConsoleMessage alloc] initWithMessage:message date:date connection:connection] autorelease];
}
-- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date
+/**
+ *
+ */
+- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date connection:(NSString *)connection
{
if ((self = [super init])) {
- [self setMessage:consoleMessage];
[self setMessageDate:date];
+ [self setMessage:consoleMessage];
+ [self setMessageConnection:connection];
}
return self;
}
+/**
+ * Dealloc.
+ */
- (void)dealloc
{
[message release], message = nil;
[messageDate release], messageDate = nil;
+ [messageConnection release], messageConnection = nil;
[super dealloc];
}