diff --git a/examples/app/main.go b/examples/app/main.go index 484de35..404cedc 100644 --- a/examples/app/main.go +++ b/examples/app/main.go @@ -41,6 +41,9 @@ func nsmgr() { fileMenu.AddItemWithTitle(ns.NSStringWithGoString("New"), nil, s) a.SetMainMenu(m1) + + b1 := ns.NSButtonWithTitle(ns.NSStringWithGoString("push"),s,nil) + w.ContentView().AddSubview(&b1.NSView,ns.NSWindowAbove,nil) a.Run() } diff --git a/examples/app/nswrap.toml b/examples/app/nswrap.toml index a92e81b..3d6cf94 100644 --- a/examples/app/nswrap.toml +++ b/examples/app/nswrap.toml @@ -24,6 +24,7 @@ Classes = [ "NSWindow", "NSView", "NSScreen", + "NSButton", "NSEvent", "NSResponder", "NSRunLoop",