Files
Odin/core/sys/darwin/Foundation/NSURL.odin
T
2022-02-09 11:50:11 +00:00

15 lines
458 B
Odin

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