Updates for Big Sur.

This commit is contained in:
gmp
2021-07-14 22:22:20 -04:00
parent 1458ba6a7c
commit 4c310187b7
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ func (o *NSPasteboard) ClearContents() {
func (o *NSPasteboard) SetString(s string) bool {
string := NSStringWithGoString(s)
ret := (C.NSPasteboard_inst_SetString(o.Ptr(), string.Ptr())) != 0
ret := (C.NSPasteboard_inst_SetString(o.Ptr(), string.Ptr())) != false
runtime.KeepAlive(o)
runtime.KeepAlive(string)
return ret