Updates for Big Sur.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user