Add NSBundle, NSError, NSEnumerator

This commit is contained in:
gingerBill committed 2022-02-09 12:19:59 +00:00
1 parent 5f2514db63
commit 768c2684d0
5 files changed
+275 -3

No files matched your search

+7 -1
View File
@@ -24,4 +24,10 @@ Dictionary_objectForKey :: proc(self: ^Dictionary, key: ^Object) -> ^Object {
return msgSend(^Dictionary, self, "objectForKey:", key)
}
// TODO(bill): enumerator
Dictionary_count :: proc(self: ^Dictionary) -> UInteger {
return msgSend(UInteger, self, "count")
}
Dictionary_keyEnumerator :: proc(self: ^Dictionary, $KeyType: typeid) -> (enumerator: ^Enumerator(KeyType)) {
return msgSend(type_of(enumerator), self, "keyEnumerator")
}