Add NSNumber and NSURL

This commit is contained in:
gingerBill committed 2022-02-09 11:50:11 +00:00
1 parent b95ade40c0
commit 5f2514db63
3 files changed
+116 -7

No files matched your search

+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)