Add a button to examples/app.

This commit is contained in:
Greg 2019-05-07 15:49:43 -04:00
parent 1c5c61308c
commit ea34821fe6
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,9 @@ func nsmgr() {
fileMenu.AddItemWithTitle(ns.NSStringWithGoString("New"), nil, s) fileMenu.AddItemWithTitle(ns.NSStringWithGoString("New"), nil, s)
a.SetMainMenu(m1) a.SetMainMenu(m1)
b1 := ns.NSButtonWithTitle(ns.NSStringWithGoString("push"),s,nil)
w.ContentView().AddSubview(&b1.NSView,ns.NSWindowAbove,nil)
a.Run() a.Run()
} }

View File

@ -24,6 +24,7 @@ Classes = [
"NSWindow", "NSWindow",
"NSView", "NSView",
"NSScreen", "NSScreen",
"NSButton",
"NSEvent", "NSEvent",
"NSResponder", "NSResponder",
"NSRunLoop", "NSRunLoop",