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
+15
View File
@@ -0,0 +1,15 @@
package objc_Foundation
@(objc_class="NSURL")
URL :: struct{using _: Copying(URL)}
URL_initWithString :: proc(self: ^URL, value: ^String) -> ^URL {
return msgSend(^URL, self, "initWithString:", value)
}
URL_initFileURLWithPath :: proc(self: ^URL, path: ^String) -> ^URL {
return msgSend(^URL, self, "initFileURLWithPath:", path)
}
URL_fileSystemRepresentation :: proc(self: ^URL) -> ^String {
return msgSend(^String, self, "fileSystemRepresentation")
}