From e645692c25fbd9a40e9c7ab65f33f7748f77a211 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 10 Dec 2010 10:22:25 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20command=20support=20-=20renamed=20?= =?UTF-8?q?menu=20item=20-=20minor=20code=20cleaning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 2 +- Source/SPBundleEditorController.m | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'Source') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 63011789..aa587aba 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -1364,7 +1364,7 @@ [menu addItem:[NSMenuItem separatorItem]]; [menu setAutoenablesItems:YES]; NSArray *scopes = [NSArray arrayWithObjects:SPBundleScopeInputField, SPBundleScopeDataTable, SPBundleScopeGeneral, nil]; - NSArray *scopeTitles = [NSArray arrayWithObjects:NSLocalizedString(@"Input Fields", @"input fields menu item label"), + NSArray *scopeTitles = [NSArray arrayWithObjects:NSLocalizedString(@"Input Field", @"input field menu item label"), NSLocalizedString(@"Data Table", @"data table menu item label"), NSLocalizedString(@"General", @"general menu item label"),nil]; diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index 1aced5e8..99da4bc4 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -297,11 +297,6 @@ [anItem setTag:kDataTableScopeArrayIndex]; [inputGeneralScopePopUpMenu addItem:anItem]; [anItem release]; - // [inputGeneralScopePopUpMenu addItem:[NSMenuItem separatorItem]]; - // anItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Disable Command", @"disable command menu label") action:@selector(scopeButtonChanged:) keyEquivalent:@""]; - // [anItem setTag:kDisabledScopeTag]; - // [inputGeneralScopePopUpMenu addItem:anItem]; - // [anItem release]; [scopePopupButton setMenu:inputGeneralScopePopUpMenu]; [keyEquivalentField setCanCaptureGlobalHotKeys:YES]; @@ -1041,13 +1036,6 @@ - (void)windowWillClose:(NSNotification *)notification { - // Clear some stuff if window will close to save memory - // [touchedBundleArray removeAllObjects]; - // [[[commandBundleTree objectForKey:kChildrenKey] objectAtIndex:0] setObject:[NSMutableArray array] forKey:kChildrenKey]; - // [[[commandBundleTree objectForKey:kChildrenKey] objectAtIndex:1] setObject:[NSMutableArray array] forKey:kChildrenKey]; - // [[[commandBundleTree objectForKey:kChildrenKey] objectAtIndex:2] setObject:[NSMutableArray array] forKey:kChildrenKey]; - // [commandsOutlineView reloadData]; - // Remove temporary drag file if any if(draggedFilePath) { [[NSFileManager defaultManager] removeItemAtPath:draggedFilePath error:nil]; -- cgit v1.2.3