diff options
author | rowanbeentje <rowan@beent.je> | 2009-07-28 01:02:40 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-07-28 01:02:40 +0000 |
commit | 9c06d1219c66acc043b5f13ab29379f60eb00350 (patch) | |
tree | 57f6a57ad8a10552eb22a372fdbf297522d39d65 /Source/TableSource.m | |
parent | 9b827edbb16a50f3e0c42e0f1c21a9bca3e7a77b (diff) | |
download | sequelpro-9c06d1219c66acc043b5f13ab29379f60eb00350.tar.gz sequelpro-9c06d1219c66acc043b5f13ab29379f60eb00350.tar.bz2 sequelpro-9c06d1219c66acc043b5f13ab29379f60eb00350.zip |
Improve TablesList significantly:
- If there are twenty or more tables, show a table quicksearch/filter at the top of the list, and update the rest of the code to match. This addresses issue #178.
- Select tables and views alphabetically by user's current locale (instead of default MySQL "A B C a b c")
- When adding or duplicating tables, insert them at the correct point
- Fix a number of minor display bugs caused by incorrect interaction with the tables list caches
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r-- | Source/TableSource.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 7fb0cdfd..48d1d75d 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -49,7 +49,12 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab // Check whether a save of the current row is required. if ( ![self saveRowOnDeselect] ) return; - selectedTable = aTable; + if (selectedTable) [selectedTable release]; + if (aTable == nil) { + selectedTable = nil; + } else { + selectedTable = [[NSString alloc] initWithString:aTable]; + } [tableSourceView deselectAll:self]; [indexView deselectAll:self]; @@ -1342,6 +1347,7 @@ traps enter and esc and make/cancel editing without entering next row currentlyEditingRow = -1; defaultValues = nil; + selectedTable = nil; prefs = [NSUserDefaults standardUserDefaults]; } @@ -1363,6 +1369,7 @@ traps enter and esc and make/cancel editing without entering next row [oldRow release]; [enumFields release]; if (defaultValues) [defaultValues release]; + if (selectedTable) [selectedTable release]; [super dealloc]; } |