aboutsummaryrefslogtreecommitdiff
path: root/core/sys/darwin/Foundation/NSURL.odin
blob: fb9ebca9e7f3c5114817b87e1d38d5f72cc920c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package objc_Foundation

@(objc_class="NSURL")
URL :: struct{using _: Copying(URL)}


@(objc_type=URL, objc_name="alloc", objc_is_class_method=true)
URL_alloc :: proc "c" () -> ^URL {
	return msgSend(^URL, URL, "alloc")
}

@(objc_type=URL, objc_name="init")
URL_init :: proc "c" (self: ^URL) -> ^URL {
	return msgSend(^URL, self, "init")
}

@(objc_type=URL, objc_name="initWithString")
URL_initWithString :: proc "c" (self: ^URL, value: ^String) -> ^URL {
	return msgSend(^URL, self, "initWithString:", value)
}

@(objc_type=URL, objc_name="initFileURLWithPath")
URL_initFileURLWithPath :: proc "c" (self: ^URL, path: ^String) -> ^URL {
	return msgSend(^URL, self, "initFileURLWithPath:", path)
}

@(objc_type=URL, objc_name="fileSystemRepresentation")
URL_fileSystemRepresentation :: proc "c" (self: ^URL) -> cstring {
	return msgSend(cstring, self, "fileSystemRepresentation")
}

@(objc_type=URL, objc_name="relativePath")
URL_relativePath :: proc "c" (self: ^URL) -> ^String {
	return msgSend(^String, self, "relativePath")
}