aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableInfo.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
commit3b70bf3ed475602fac435b86ab564423ae1dfdb0 (patch)
tree2328be21dbfdaec7e07caad38c2b46d26c76fcd7 /Source/SPTableInfo.m
parent47f354070f1fa8dfeb46c4065075ee53de4c1626 (diff)
downloadsequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.gz
sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.bz2
sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.zip
General tidy up, with a focus on consolidating more constants in SPConstants.h/m.
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r--Source/SPTableInfo.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m
index dc7d216d..5e01d987 100644
--- a/Source/SPTableInfo.m
+++ b/Source/SPTableInfo.m
@@ -78,7 +78,7 @@
[info removeAllObjects];
// For views, no information can be displayed.
- if ([tableListInstance tableType] == SP_TABLETYPE_VIEW) {
+ if ([tableListInstance tableType] == SPTableTypeView) {
[info addObject:NSLocalizedString(@"VIEW INFORMATION", @"header for view info pane")];
[info addObject:NSLocalizedString(@"no information available", @"no information available")];
[infoTable reloadData];
@@ -93,7 +93,7 @@
}
// Get TABLE information
- if ([tableListInstance tableType] == SP_TABLETYPE_TABLE) {
+ if ([tableListInstance tableType] == SPTableTypeTable) {
[info addObject:NSLocalizedString(@"TABLE INFORMATION", @"header for table info pane")];
@@ -140,9 +140,9 @@
}
// Get PROC/FUNC information
- else if ([tableListInstance tableType] == SP_TABLETYPE_PROC || [tableListInstance tableType] == SP_TABLETYPE_FUNC) {
+ else if ([tableListInstance tableType] == SPTableTypeProc || [tableListInstance tableType] == SPTableTypeFunc) {
- if ([tableListInstance tableType] == SP_TABLETYPE_PROC)
+ if ([tableListInstance tableType] == SPTableTypeProc)
[info addObject:NSLocalizedString(@"PROCEDURE INFORMATION", @"header for procedure info pane")];
else
[info addObject:NSLocalizedString(@"FUNCTION INFORMATION", @"header for function info pane")];
@@ -178,7 +178,7 @@
}
// Check for 'DTD_IDENTIFIER' for FUNCTIONS only
- if ([tableListInstance tableType] == SP_TABLETYPE_FUNC) {
+ if ([tableListInstance tableType] == SPTableTypeFunc) {
if (![[tableStatus objectForKey:@"DTD_IDENTIFIER"] isNSNull]) {
[info addObject:[NSString stringWithFormat:NSLocalizedString(@"return type: %@", @"return type: %@"), [tableStatus objectForKey:@"DTD_IDENTIFIER"]]];
}