-- (UIViewController *) makeMenu
-{
- listController = [[[SaverListController alloc]
- initWithNames:saverNames
- descriptions:[self makeDescTable]]
- retain];
- UIBarButtonItem *run = [[[UIBarButtonItem alloc]
- initWithTitle:@"Run"
- style: UIBarButtonItemStylePlain
- target: self
- action: @selector(loadSaverMenu:)]
- autorelease];
- UIBarButtonItem *about = [[[UIBarButtonItem alloc]
- initWithTitle: @"About"
- style: UIBarButtonItemStylePlain
- target: self
- action: @selector(aboutPanel:)]
- autorelease];
- UIBarButtonItem *pref = [[[UIBarButtonItem alloc]
- initWithTitle:@"Settings"
- style: UIBarButtonItemStylePlain
- target: self
- action: @selector(openPreferences:)]
- autorelease];
- NSArray *a = [NSArray arrayWithObjects: pref, about, nil];
-
- [run setEnabled:NO];
- [about setEnabled:YES];
- [pref setEnabled:NO];
- listController.navigationItem.leftBarButtonItem = run;
- listController.navigationItem.rightBarButtonItems = a;
-
- return listController;
-}
-