examples: annotate examples
[nit.git] / lib / cocoa / examples / cocoa_message_box.nit
index 72e35d7..0f43d9e 100644 (file)
 # limitations under the License.
 
 # Simple message box using the Cocoa framework
-module cocoa_message_box
+module cocoa_message_box is example
 
 import cocoa
 
 in "ObjC" `{
-       #import <Cocoa/Cocoa.h>
+       #import <AppKit/AppKit.h>
 `}
 
-fun dialog in "ObjC" `{
+private fun dialog in "ObjC" `{
        NSAlert *alert = [[[NSAlert alloc] init] autorelease];
        [alert setMessageText:@"Hello world!"];
        [alert runModal];