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)
|
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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ Classes = [
|
||||||
"NSWindow",
|
"NSWindow",
|
||||||
"NSView",
|
"NSView",
|
||||||
"NSScreen",
|
"NSScreen",
|
||||||
|
"NSButton",
|
||||||
"NSEvent",
|
"NSEvent",
|
||||||
"NSResponder",
|
"NSResponder",
|
||||||
"NSRunLoop",
|
"NSRunLoop",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user