Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSTimer.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | f565d3a95c0a |
children | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSTimer.d Tue Oct 07 12:56:18 2008 +0200 +++ b/dwt/internal/cocoa/NSTimer.d Fri Oct 10 12:29:48 2008 +0200 @@ -20,6 +20,8 @@ import dwt.internal.cocoa.OS; import objc = dwt.internal.objc.runtime; +import dwt.dwthelper.utils; + public class NSTimer : NSObject { @@ -68,11 +70,11 @@ return result !is null ? new NSTimer(result) : null; } - public static NSTimer static_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ (NSTimeInterval ti, id aTarget, objc.SEL aSelector, + public static NSTimer static_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ (NSTimeInterval ti, id aTarget, String aSelector, objc.id userInfo, bool yesOrNo) { objc.id result = OS.objc_msgSend(OS.class_NSTimer, OS.sel_scheduledTimerWithTimeInterval_1target_1selector_1userInfo_1repeats_1, ti, - aTarget !is null ? aTarget.id_ : null, aSelector, userInfo, yesOrNo); + aTarget !is null ? aTarget.id_ : null, aSelector.ptr, userInfo, yesOrNo); return result !is null ? new NSTimer(result) : null; } @@ -93,11 +95,11 @@ return result !is null ? new NSTimer(result) : null; } - public static NSTimer static_timerWithTimeInterval_target_selector_userInfo_repeats_ (NSTimeInterval ti, id aTarget, objc.SEL aSelector, id userInfo, + public static NSTimer static_timerWithTimeInterval_target_selector_userInfo_repeats_ (NSTimeInterval ti, id aTarget, String aSelector, id userInfo, bool yesOrNo) { objc.id result = OS.objc_msgSend(OS.class_NSTimer, OS.sel_timerWithTimeInterval_1target_1selector_1userInfo_1repeats_1, ti, - aTarget !is null ? aTarget.id_ : null, aSelector, userInfo !is null ? userInfo.id_ : null, yesOrNo); + aTarget !is null ? aTarget.id_ : null, aSelector.ptr, userInfo !is null ? userInfo.id_ : null, yesOrNo); return result !is null ? new NSTimer(result) : null; }