#import "PreferencesController.h"
#import "MainController.h"
#import "StatusWindow.h"
+#import "CustomMenuTableView.h"
#import <ITKit/ITHotKeyCenter.h>
#import <ITKit/ITKeyCombo.h>
[launchPlayerAtLaunchCheckbox setTitle:[NSString stringWithFormat:@"Launch %@ when MenuTunes launches", [[controller currentRemote] playerSimpleName]]]; //This isn't localized...
}
-// [window setLevel:NSStatusWindowLevel];
+ [window setLevel:NSStatusWindowLevel];
[window center];
- [NSApp activateIgnoringOtherApps:YES];
[window makeKeyAndOrderFront:self];
}
[self cancelHotKey:sender];
}
+- (void)deletePressedInTableView:(NSTableView *)tableView
+{
+ if (tableView == menuTableView) {
+ int selRow = [tableView selectedRow];
+ if (selRow != - 1) {
+ NSString *object = [myItems objectAtIndex:selRow];
+
+ if ([object isEqualToString:@"preferences"]) {
+ NSBeep();
+ return;
+ }
+
+ if (![object isEqualToString:@"separator"])
+ [availableItems addObject:object];
+ [myItems removeObjectAtIndex:selRow];
+ [menuTableView reloadData];
+ [allTableView reloadData];
+ }
+ [self changeMenus:self];
+ }
+}
/*************************************************************************/
id anItem;
// Set the list of items you can have.
availableItems = [[NSMutableArray alloc] initWithObjects:
+ @"separator",
@"trackInfo",
@"upcomingSongs",
@"playlists",
@"fastForward",
@"rewind",
@"showPlayer",
- @"separator",
@"quit",
nil];