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

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