More Foundation bindings.
This commit is contained in:
1 parent
1761802330
commit
004036dc59
6 files changed
+104
-24
No files matched your search
@@ -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")
|
||||
}
|
||||
Reference in new issue
Block a user