#import <Cocoa/Cocoa.h>
@interface AngbandAppDelegate : NSObject <NSApplicationDelegate> {
+ IBOutlet NSMenu *terminalsMenu;
NSMenu *_graphicsMenu;
NSMenu *_commandMenu;
NSDictionary *_commandMenuTagMap;
- (IBAction)saveGame:(id)sender;
- (IBAction)setRefreshRate:(NSMenuItem *)sender;
- (IBAction)toggleSound:(NSMenuItem *)menuItem;
-- (void)setGraphicsMode:(NSMenuItem *)sender;
-- (void)selectWindow:(id)sender;
+- (IBAction)setGraphicsMode:(NSMenuItem *)sender;
+- (IBAction)selectWindow:(id)sender;
@end
/* The NSView subclass that draws our Angband image */
@interface AngbandView : NSView
{
- AngbandContext *angbandContext;
+ IBOutlet AngbandContext *angbandContext;
}
- (void)setAngbandContext:(AngbandContext *)context;
[[NSUserDefaults angbandDefaults] setInteger:frames_per_second forKey:AngbandFrameRateDefaultsKey];
}
-- (void)selectWindow: (id)sender
+- (IBAction)selectWindow: (id)sender
{
NSInteger subwindowNumber = [(NSMenuItem *)sender tag] - AngbandWindowMenuItemTagBase;
AngbandContext *context = angband_term[subwindowNumber]->data;
}
}
-- (void)setGraphicsMode:(NSMenuItem *)sender
+- (IBAction)setGraphicsMode:(NSMenuItem *)sender
{
/* We stashed the graphics mode ID in the menu item's tag */
graf_mode_req = [sender tag];