Fix obsolete sample code.

This commit is contained in:
Nikolay Igotti
2018-06-29 09:32:41 +03:00
parent 695f93ea61
commit 5cc6baf8c3
+1 -1
View File
@@ -78,7 +78,7 @@ private class MyAppDelegate() : NSObject(), NSApplicationDelegateProtocol {
}
}
val button = NSButton().initWithFrame(NSMakeRect(10.0, 10.0, 100.0, 40.0)).apply {
val button = NSButton(NSMakeRect(10.0, 10.0, 100.0, 40.0)).apply {
title = "Press me"
target = controller
action = NSSelectorFromString("onClick")