nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/cocoa: cocoa_message_box import AppKit.h as it doesn't use app_kit
[nit.git]
/
lib
/
cocoa
/
examples
/
cocoa_message_box.nit
diff --git
a/lib/cocoa/examples/cocoa_message_box.nit
b/lib/cocoa/examples/cocoa_message_box.nit
index
224c7ab
..
4e96768
100644
(file)
--- a/
lib/cocoa/examples/cocoa_message_box.nit
+++ b/
lib/cocoa/examples/cocoa_message_box.nit
@@
-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];