Return Golang bools from Objective-C functions that return BOOL.

Move nswrap command to cmd/nswrap.
This commit is contained in:
gmp
2019-05-06 09:00:38 -04:00
parent 717c7e76fe
commit 959b87342e
3 changed files with 22 additions and 4 deletions
+3
View File
@@ -610,6 +610,9 @@ func (w *Wrapper) _processMethod(m *Method,fun bool) {
if types.IsGoInterface(grtype) {
grtype = "*Id"
}
if grtype == "BOOL" { // convert objective-c bools to Go bools
grtype = "bool"
}
if gname == grtype { // avoid name conflicts between methods and types
gname = "Get" + gname
}