Add constants for C enum types. Add NSEnumerator helper. Fix
bugs in Go class names. Add "Frameworks" option to nswrap.toml. Improve handling of ast.EnumDecl and ast.EnumConstantDecl.
This commit is contained in:
@@ -27,4 +27,8 @@ func main() {
|
||||
fmt.Println("Length(a2) = ",a2.Count())
|
||||
i1 := a.ObjectAtIndex(1).NSString()
|
||||
fmt.Println(i1.UTF8String())
|
||||
a.ObjectEnumerator().ForIn(func(o *ns.Id) bool {
|
||||
fmt.Println(o.NSString().UTF8String())
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
||||
@@ -19,6 +19,9 @@ Classes = [
|
||||
Functions = [
|
||||
"NSMakeRange",
|
||||
]
|
||||
Enums = [
|
||||
"CF.*",
|
||||
]
|
||||
SysImports = [ "Foundation/Foundation.h" ]
|
||||
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
|
||||
VaArgs = 32
|
||||
|
||||
Reference in New Issue
Block a user