From 30a49adb59f7770c9fc7739c145389447da8bc39 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 28 Oct 2009 12:43:26 +0000 Subject: Replace the multiple occurrences of hard coded toolbar identifiers for the main toolbar with constants. --- Source/TableSource.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/TableSource.m') diff --git a/Source/TableSource.m b/Source/TableSource.m index f12a5f86..f5900bc5 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -1060,7 +1060,7 @@ returns a dictionary containing enum/set field names as key and possible values // Only proceed if the current document is the notifying document, and only if // this view is selected. if ([aNotification object] != tableDocumentInstance - || ![[[aNotification object] selectedToolbarItemIdentifier] isEqualToString:@"SwitchToTableStructureToolbarItemIdentifier"]) + || ![[[aNotification object] selectedToolbarItemIdentifier] isEqualToString:MAIN_TOOLBAR_TABLE_STRUCTURE]) return; [tableSourceView setEnabled:NO]; @@ -1084,7 +1084,7 @@ returns a dictionary containing enum/set field names as key and possible values // Only re-enable elements if the current tab is the structure view if ([aNotification object] != tableDocumentInstance - || ![[[aNotification object] selectedToolbarItemIdentifier] isEqualToString:@"SwitchToTableStructureToolbarItemIdentifier"]) + || ![[[aNotification object] selectedToolbarItemIdentifier] isEqualToString:MAIN_TOOLBAR_TABLE_STRUCTURE]) return; BOOL editingEnabled = ([tablesListInstance tableType] == SP_TABLETYPE_TABLE); -- cgit v1.2.3