Add NSNumber and NSURL

This commit is contained in:
gingerBill
2022-02-09 11:50:11 +00:00
parent b95ade40c0
commit 5f2514db63
3 changed files with 116 additions and 7 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ package objc_Foundation
import "core:intrinsics"
@(objc_class="NSArray")
Array :: struct($T: typeid) where intrinsics.type_is_pointer(T), intrinsics.type_is_subtype_of(T, ^Object) {using _: Copying(Array(T))}
Array :: struct($T: typeid) where intrinsics.type_is_pointer(T), intrinsics.type_is_subtype_of(T, ^Object) {
using _: Copying(Array(T)),
}
Array_initWithObjects :: proc(self: ^$A/Array($T), objects: [^]^Object, count: UInteger) -> ^A {
return msgSend(^A, "initWithObjects:count:", objects, count)