remove references and dead code to the group window being its own window; other rearrangements of code

This commit is contained in:
Mitchell Livingston
2008-11-29 20:29:54 +00:00
parent 16e6aadec3
commit d6fce3abcb
10 changed files with 69 additions and 136 deletions

View File

@@ -236,12 +236,6 @@
}
}
- (void) showGroupsWindow: (id) sender
{
[fGroupPopUp selectItemWithTag: fGroupValue];
[fController showGroups: sender];
}
@end
@implementation AddWindowController (Private)
@@ -288,14 +282,8 @@
- (void) setGroupsMenu
{
NSMenu * menu = [fGroupPopUp menu];
for (NSInteger i = [menu numberOfItems]-1 - 2; i >= 0; i--)
[menu removeItemAtIndex: i];
NSMenu * groupMenu = [[GroupsController groups] groupMenuWithTarget: self action: @selector(changeGroupValue:) isSmall: NO];
[menu appendItemsFromMenu: groupMenu atIndexes: [NSIndexSet indexSetWithIndexesInRange:
NSMakeRange(0, [groupMenu numberOfItems])] atBottom: NO];
[fGroupPopUp setMenu: groupMenu];
}
- (void) changeGroupValue: (id) sender