/*
* Mac OS X / Cocoa front end to puzzles.
*
- * Actually unfinished things left to do:
- *
- * - Find out how to do help, and do some. We have a help file; at
- * _worst_ this should involve a new Halibut back end, but I
- * think help is HTML round here anyway so perhaps we can work
- * with what we already have.
+ * Still to do:
*
- * - Why are the right and bottom edges of the Pattern grid one
- * pixel thinner than they should be?
+ * - I'd like to be able to call up context help for a specific
+ * game at a time.
*
* Mac interface issues that possibly could be done better:
*
@interface AppController : NSObject
{
}
-- (IBAction)newGame:(id)sender;
+- (void)newGame:(id)sender;
@end
@implementation AppController
-- (IBAction)newGame:(id)sender
+- (void)newGame:(id)sender
{
const game *g = [sender getPayload];
id win;
[NSApp setWindowsMenu: menu];
item = newitem(menu, "Minimise Window", "m", NULL, @selector(performMiniaturize:));
+ menu = newsubmenu([NSApp mainMenu], "Help");
+ item = newitem(menu, "Puzzles Help", "?", NSApp, @selector(showHelp:));
+
[NSApp run];
[pool release];
}