Add a button to examples/app.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user