mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
More Foundation bindings.
This commit is contained in:
@@ -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