diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-22 13:01:45 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-22 13:01:45 +0000 |
commit | 151ef11fca8f5d95d0383188b7f5cc3b67461be6 (patch) | |
tree | 5b3f2cde4f9fd15cbebd9783d8240af675decfe0 /Source/SPTableContent.m | |
parent | e30cdeb6ee289fc4221d7b3fc5ec9e58be059675 (diff) | |
download | sequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.tar.gz sequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.tar.bz2 sequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.zip |
• sequelpro url scheme support
• added commands: SelectDocumentView, ReloadContentTableWithWHEREClause
• fixed typos
• tried to queue incoming commands
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r-- | Source/SPTableContent.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 7d694e07..2f0cec21 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -72,6 +72,7 @@ filterTableIsSwapped = NO; lastEditedFilterTableValue = nil; activeFilter = 0; + schemeFilter = nil; selectedTable = nil; sortCol = nil; @@ -866,6 +867,12 @@ - (NSString *)tableFilterString { + // If filter command was passed by sequelpro url scheme + if(activeFilter == 2) { + if(schemeFilter) + return schemeFilter; + } + // Call did come from filter table and is filter table window still open? if(activeFilter == 1 && [filterTableWindow isVisible]) { @@ -1255,6 +1262,11 @@ if(sender == filterTableFilterButton) activeFilter = 1; + else if([sender isKindOfClass:[NSString class]] && [sender length]) { + if(schemeFilter) [schemeFilter release], schemeFilter = nil; + schemeFilter = [sender retain]; + activeFilter = 2; + } else activeFilter = 0; |