More Foundation bindings.

This commit is contained in:
Vitalii Kravchenko
2024-08-16 00:00:29 +01:00
parent 1761802330
commit 004036dc59
6 changed files with 104 additions and 24 deletions
+11 -1
View File
@@ -16,4 +16,14 @@ Date_init :: proc "c" (self: ^Date) -> ^Date {
@(objc_type=Date, objc_name="dateWithTimeIntervalSinceNow")
Date_dateWithTimeIntervalSinceNow :: proc "c" (secs: TimeInterval) -> ^Date {
return msgSend(^Date, Date, "dateWithTimeIntervalSinceNow:", secs)
}
}
@(objc_type=Date, objc_name="distantFuture", objc_is_class_method=true)
Date_distantFuture :: proc "c" () -> ^Date {
return msgSend(^Date, Date, "distantFuture")
}
@(objc_type=Date, objc_name="distantPast", objc_is_class_method=true)
Date_distantPast :: proc "c" () -> ^Date {
return msgSend(^Date, Date, "distantPast")
}