INNER CODE UNIT · Go
main
progrium/darwinkit · macos/_examples/layout/main.go:15
func main() {
macos.RunApp(launched)
}
func launched(app appkit.Application, delegate *appkit.ApplicationDelegate) {
app.SetActivationPolicy(appkit.ApplicationActivationPolicyRegular)
app.ActivateIgnoringOtherApps(true)
w := appkit.NewWindowWithSize(600, 400)
objc.Retain(&w)
w.SetTitle("Test Layout")
label := appkit.NewLabel("label")
mdButton := appkit.NewButtonWithTitle("modal dialog")
dButton := appkit.NewButtonWithTitle("dialog")
textView := appkit.TextViewClass.ScrollableTextView()
action.Set(mdButton, func(sender objc.Object) {