Change objc_class_name to objc_name with objc_is_class_method

This commit is contained in:
gingerBill
2022-02-14 17:31:55 +00:00
parent e69738c079
commit 03aec70287
18 changed files with 166 additions and 172 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ foreign Foundation {
Error :: struct { using _: Copying(Error) }
@(objc_type=Error, objc_class_name="alloc")
@(objc_type=Error, objc_name="alloc", objc_is_class_method=true)
Error_alloc :: proc() -> ^Error {
return msgSend(^Error, Error, "alloc")
}
@@ -42,7 +42,7 @@ Error_init :: proc(self: ^Error) -> ^Error {
return msgSend(^Error, self, "init")
}
@(objc_type=Error, objc_class_name="errorWithDomain")
@(objc_type=Error, objc_name="errorWithDomain", objc_is_class_method=true)
Error_errorWithDomain :: proc(domain: ErrorDomain, code: Integer, userInfo: ^Dictionary) -> ^Error {
return msgSend(^Error, Error, "errorWithDomain:code:userInfo:", domain, code, userInfo)
}