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 {
|
func (o *NSPasteboard) SetString(s string) bool {
|
||||||
string := NSStringWithGoString(s)
|
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(o)
|
||||||
runtime.KeepAlive(string)
|
runtime.KeepAlive(string)
|
||||||
return ret
|
return ret
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# binding generator for git.wow.st/gmp/nswrap
|
# binding generator for git.wow.st/gmp/nswrap
|
||||||
# original binding is in ns/main.go- and is not used.
|
# original binding is in ns/main.go- and is not used.
|
||||||
inputfiles:
|
inputfiles:
|
||||||
- /System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
|
- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
|
||||||
classes:
|
classes:
|
||||||
- NSPasteboard
|
- NSPasteboard
|
||||||
- NSString
|
- NSString
|
||||||
|
|
Loading…
Reference in New Issue
Block a user