X-Git-Url: http://nitlanguage.org diff --git a/lib/cocoa/app_kit.nit b/lib/cocoa/app_kit.nit index 91bc87c..91632db 100644 --- a/lib/cocoa/app_kit.nit +++ b/lib/cocoa/app_kit.nit @@ -15,7 +15,7 @@ # limitations under the License. # The Application Kit provides services to create GUI -module app_kit is c_linker_option "-framework AppKit" +module app_kit is ldflags "-framework AppKit" import foundation @@ -31,8 +31,8 @@ extern class NSAlert in "ObjC" `{ NSAlert * `} new in "ObjC" `{ return [[NSAlert alloc] init]; `} # Set the content of this message box - fun message_text=(text: NSString) in "ObjC" `{ [recv setMessageText:text]; `} + fun message_text=(text: NSString) in "ObjC" `{ [self setMessageText:text]; `} # Show this message box - fun run_modal in "ObjC" `{ [recv runModal]; `} + fun run_modal in "ObjC" `{ [self runModal]; `} end