Add NSBundle, NSError, NSEnumerator

This commit is contained in:
gingerBill
2022-02-09 12:19:59 +00:00
parent 5f2514db63
commit 768c2684d0
5 changed files with 275 additions and 3 deletions
+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")
}