Updates for Big Sur.
This commit is contained in:
parent
1458ba6a7c
commit
4c310187b7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user