Updates for Big Sur.

This commit is contained in:
Greg Pomerantz 2021-07-14 22:22:20 -04:00
parent 1458ba6a7c
commit 4c310187b7
3 changed files with 5 additions and 2 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.wow.st/gmp/clip
go 1.16

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

View File

@ -1,7 +1,7 @@
# binding generator for git.wow.st/gmp/nswrap
# original binding is in ns/main.go- and is not used.
inputfiles:
- /System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
classes:
- NSPasteboard
- NSString