Add a button to examples/app.
This commit is contained in:
parent
1c5c61308c
commit
ea34821fe6
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ Classes = [
|
|||
"NSWindow",
|
||||
"NSView",
|
||||
"NSScreen",
|
||||
"NSButton",
|
||||
"NSEvent",
|
||||
"NSResponder",
|
||||
"NSRunLoop",
|
||||
|
|
Loading…
Reference in New Issue
Block a user