Update to Big Sur 15.5.2 / Clang 12.0.5. Improved handing of avaiability
attributes and boolean values.
This commit is contained in:
@@ -34,7 +34,7 @@ func didFinishLaunching(self ns.AppDelegate, n *ns.NSNotification) {
|
||||
ns.NSWindowStyleMask(ns.NSWindowStyleMaskTitled|ns.NSWindowStyleMaskClosable|
|
||||
ns.NSWindowStyleMaskResizable),
|
||||
ns.NSBackingStoreType(ns.NSBackingStoreBuffered),
|
||||
0,
|
||||
false,
|
||||
)
|
||||
// We do not need to retain this because we are in garbage collection mode
|
||||
// and have assigned it to a global variable.
|
||||
@@ -86,8 +86,8 @@ func didFinishLaunching(self ns.AppDelegate, n *ns.NSNotification) {
|
||||
|
||||
//add some layout constraints
|
||||
|
||||
b1.SetTranslatesAutoresizingMaskIntoConstraints(0)
|
||||
b2.SetTranslatesAutoresizingMaskIntoConstraints(0)
|
||||
b1.SetTranslatesAutoresizingMaskIntoConstraints(false)
|
||||
b2.SetTranslatesAutoresizingMaskIntoConstraints(false)
|
||||
|
||||
cv := win.ContentView()
|
||||
|
||||
@@ -105,12 +105,12 @@ func didFinishLaunching(self ns.AppDelegate, n *ns.NSNotification) {
|
||||
cv.AddConstraints(ns.NSLayoutConstraintsWithVisualFormat(
|
||||
nst("H:[b1]-[b2]"), ns.NSLayoutFormatOptions(ns.NSLayoutFormatAlignAllBaseline), nil, viewmap))
|
||||
|
||||
a.ActivateIgnoringOtherApps(1)
|
||||
a.ActivateIgnoringOtherApps(true)
|
||||
}
|
||||
|
||||
func shouldTerminateAfterLastWindowClosed(self ns.AppDelegate, s *ns.NSApplication) ns.BOOL {
|
||||
fmt.Println("Go: should terminate after last window closed")
|
||||
return 1
|
||||
return true
|
||||
}
|
||||
|
||||
func willTerminate(self ns.AppDelegate, n *ns.NSNotification) {
|
||||
|
||||
Reference in New Issue
Block a user