aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableRelations.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-05-15 00:36:38 +0000
committermtvee <emptyvee@gmail.com>2009-05-15 00:36:38 +0000
commit8bcfd1207b4794fdd62fdf5df9343963b507b41c (patch)
treeab5c0e6bb63d0365831e9b45a7b1d407ccdfa6fc /Source/TableRelations.m
parent467944c01e5978b0f543353e1a7dd3150fd69e6f (diff)
downloadsequelpro-8bcfd1207b4794fdd62fdf5df9343963b507b41c.tar.gz
sequelpro-8bcfd1207b4794fdd62fdf5df9343963b507b41c.tar.bz2
sequelpro-8bcfd1207b4794fdd62fdf5df9343963b507b41c.zip
UI cleanups for references tab
Diffstat (limited to 'Source/TableRelations.m')
-rw-r--r--Source/TableRelations.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/TableRelations.m b/Source/TableRelations.m
index 322ab4e1..8bd204cb 100644
--- a/Source/TableRelations.m
+++ b/Source/TableRelations.m
@@ -80,6 +80,7 @@
*/
- (IBAction)closeRelationSheet:(id)sender
{
+ // 0 = success,
[NSApp stopModalWithCode:0];
}
@@ -136,6 +137,8 @@
NSDictionary *info = [tableDataInstance informationForTable:table];
NSArray *cols = [info objectForKey:@"columns"];
NSMutableArray *colNames = [[NSMutableArray alloc] init];
+ // TODO depending on the selected column type, it would be smart to only
+ // show columns that are valid to linkage. this.int -> ints only
for( int i = 0; i < [cols count]; i++ ) {
[colNames addObject:[[cols objectAtIndex:i] objectForKey:@"name"]];
}
@@ -149,12 +152,15 @@
*/
- (IBAction)addRow:(id)sender
{
+ // TODO check that this is an INNO table
+
// set up the controls
[tableBox setTitle:[NSString stringWithFormat:@"Table: %@",[tablesListInstance tableName] ]];
[columnSelect removeAllItems];
[columnSelect addItemsWithTitles:[tableDataInstance columnNames]];
[refTableSelect removeAllItems];
// grab only real tables
+ // TODO filter this so it only shows INNO tables
NSArray *tables = [tablesListInstance tables];
NSArray *types = [tablesListInstance tableTypes];
NSMutableArray *validTables = [[NSMutableArray alloc] init];