Create GoString helper methods for anything that has a "WithString"
method. Multiple bug fixes in type system, fixed parsing of id, instancename and instancetype, allow NullableAnnotations after generic lists (e.g. "id<ObjectType> _Nullable"). Helper function to identify types that are function pointers.
This commit is contained in:
@@ -11,7 +11,8 @@ func main() {
|
||||
fmt.Println("LE capable:",cd.IsLECapableHardware())
|
||||
time.Sleep(time.Second * 1)
|
||||
fmt.Println("LE capable:",cd.IsLECapableHardware())
|
||||
uuid := ble.CBUUIDWithString(ble.NSStringWithUTF8String(ble.CharFromString("180d")))
|
||||
uuid := ble.CBUUIDWithGoString("180d")
|
||||
cd.ScanFor(uuid)
|
||||
time.Sleep(time.Second * 15)
|
||||
|
||||
select { }
|
||||
}
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
n1 := ns.NSStringWithUTF8String(ns.CharFromString("hi there"))
|
||||
n1 := ns.NSStringWithUTF8String(ns.CharWithGoString("hi there"))
|
||||
c1 := n1.CapitalizedString()
|
||||
gs := c1.UTF8String().String()
|
||||
fmt.Println(gs)
|
||||
n2 := ns.NSStringWithUTF8String(ns.CharFromString("hi world"))
|
||||
n3 := ns.NSStringWithUTF8String(ns.CharFromString("ok bye"))
|
||||
n2 := ns.NSStringWithGoString("hi world")
|
||||
n3 := ns.NSStringWithGoString("ok bye")
|
||||
a := ns.NSMutableArrayWithObjects(n1,n2,n3)
|
||||
fmt.Println("Length(a) = ",a.Count())
|
||||
fmt.Println("is n2 in a?",a.ContainsObject(n2))
|
||||
|
||||
@@ -22,6 +22,6 @@ Functions = [
|
||||
Enums = [
|
||||
"CF.*",
|
||||
]
|
||||
SysImports = [ "Foundation/Foundation.h" ]
|
||||
Frameworks = [ "Foundation" ]
|
||||
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
|
||||
VaArgs = 32
|
||||
|
||||
@@ -2,3 +2,4 @@ Package = "ClassOne"
|
||||
InputFiles = [ "ClassOne/simple.h" ]
|
||||
Classes = [ "ClassOne","ClassTwo" ]
|
||||
Imports = [ "simple.h" ]
|
||||
Frameworks = [ "Foundation" ]
|
||||
|
||||
Reference in New Issue
Block a user