Updates for OS X port (including updating copyright statements).
[sgt/puzzles] / osx.m
diff --git a/osx.m b/osx.m
index e0a35b4..09aa99c 100644 (file)
--- a/osx.m
+++ b/osx.m
@@ -1,15 +1,10 @@
 /*
  * 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:
  * 
@@ -1116,12 +1111,12 @@ void status_bar(frontend *fe, char *text)
 @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;
@@ -1212,6 +1207,9 @@ int main(int argc, char **argv)
     [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];
 }