aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-10-28 15:35:40 +0000
committerstuconnolly <stuart02@gmail.com>2010-10-28 15:35:40 +0000
commitf48b5ba6410a5d449fad026e870e2c3e5e0fcf53 (patch)
treea358fb72201d9c70f2a7d05909cab9fc7eabe8c0 /Source/SPTableStructure.m
parentc48e2762b6906f4751f9918af379d01b42647e46 (diff)
downloadsequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.tar.gz
sequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.tar.bz2
sequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.zip
Add SPDefaultPasteboardDragType constant.
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r--Source/SPTableStructure.m14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index 3290df89..86644319 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -133,9 +133,6 @@
nil] retain];
// Hint: _isFieldTypeDate and _isFieldTypeNumeric must be changed if typeSuggestions was changed!
-
- databaseDataInstance = [tableDocumentInstance valueForKeyPath:@"databaseDataInstance"];
-
// Add observers for document task activity
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(startDocumentTaskForTab:)
@@ -193,7 +190,7 @@
[theTableFields setArray:[NSArray array]];
// Make a mutable copy out of the cached [tableDataInstance columns] since we're adding infos
- for(id col in [tableDataInstance columns])
+ for (id col in [tableDataInstance columns])
[theTableFields addObject:[[col mutableCopy] autorelease]];
// Retrieve the indexes for the table
@@ -712,7 +709,7 @@
#pragma mark Index sheet methods
/**
- * Closes the current sheet and stops the modal session
+ * Closes the current sheet and stops the modal session.
*/
- (IBAction)closeSheet:(id)sender
{
@@ -721,14 +718,13 @@
}
/**
-closes the keySheet
-*/
+ * Closes the key sheet.
+ */
- (IBAction)closeKeySheet:(id)sender
{
[NSApp stopModalWithCode:[sender tag]];
}
-
#pragma mark -
#pragma mark Additional methods
@@ -743,7 +739,7 @@ closes the keySheet
[indexesController setConnection:mySQLConnection];
// Set up tableView
- [tableSourceView registerForDraggedTypes:[NSArray arrayWithObjects:@"SequelProPasteboard", nil]];
+ [tableSourceView registerForDraggedTypes:[NSArray arrayWithObjects:SPDefaultPasteboardDragType, nil]];
}
/**