lib/cocoa: cocoa_message_box import AppKit.h as it doesn't use app_kit
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 25 Aug 2015 15:39:24 +0000 (11:39 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 27 Aug 2015 17:39:25 +0000 (13:39 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/cocoa/examples/cocoa_message_box.nit

index 224c7ab..4e96768 100644 (file)
@@ -19,7 +19,11 @@ module cocoa_message_box
 
 import cocoa
 
-fun dialog in "ObjC" `{
+in "ObjC" `{
+       #import <AppKit/AppKit.h>
+`}
+
+private fun dialog in "ObjC" `{
        NSAlert *alert = [[[NSAlert alloc] init] autorelease];
        [alert setMessageText:@"Hello world!"];
        [alert runModal];