Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSCalendarDate.d @ 60:62202ce0039f
Updated and fixed many modules to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 22 Dec 2008 15:10:19 +0100 |
parents | d8635bb48c7c |
children |
comparison
equal
deleted
inserted
replaced
59:83b0ad9d9238 | 60:62202ce0039f |
---|---|
68 public NSTimeZone timeZone() { | 68 public NSTimeZone timeZone() { |
69 objc.id result = OS.objc_msgSend(this.id, OS.sel_timeZone); | 69 objc.id result = OS.objc_msgSend(this.id, OS.sel_timeZone); |
70 return result !is null ? new NSTimeZone(result) : null; | 70 return result !is null ? new NSTimeZone(result) : null; |
71 } | 71 } |
72 | 72 |
73 public int /*long*/yearOfCommonEra() { | 73 public NSInteger yearOfCommonEra() { |
74 return OS.objc_msgSend(this.id, OS.sel_yearOfCommonEra); | 74 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_yearOfCommonEra); |
75 } | 75 } |
76 | 76 |
77 public static NSDate dateWithTimeIntervalSinceNow(double secs) { | 77 public static NSDate dateWithTimeIntervalSinceNow(double secs) { |
78 objc.id result = OS.objc_msgSend(OS.class_NSCalendarDate, OS.sel_dateWithTimeIntervalSinceNow_, secs); | 78 objc.id result = OS.objc_msgSend(OS.class_NSCalendarDate, OS.sel_dateWithTimeIntervalSinceNow_, secs); |
79 return result !is null ? new NSCalendarDate(result) : null; | 79 return result !is null ? new NSCalendarDate(result) : null; |