Skip to content
Snippets Groups Projects
Commit 55629350 authored by George Nachman's avatar George Nachman
Browse files

Get rid of NSEnumerator in some very ancient code

parent 62a8dcb8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1508,14 +1508,12 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
NSMenu *aMenu = [[NSMenu alloc] initWithTitle: @"SessionMenu"];
PTYTabView *aTabView = [currentTerminal tabView];
NSArray *tabViewItemArray = [aTabView tabViewItems];
NSEnumerator *enumerator = [tabViewItemArray objectEnumerator];
NSTabViewItem *aTabViewItem;
int i=1;
 
// clear whatever menu we already have
[selectTab setSubmenu: nil];
[selectTab setSubmenu:nil];
 
while ((aTabViewItem = [enumerator nextObject])) {
for (NSTabViewItem *aTabViewItem in tabViewItemArray) {
PTYTab *aTab = [aTabViewItem identifier];
NSMenuItem *aMenuItem;
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment