diff dwt/internal/cocoa/NSRunLoop.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSRunLoop.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSRunLoop.d	Tue Aug 19 17:35:17 2008 +0200
@@ -40,38 +40,38 @@
 
     public void acceptInputForMode (NSString mode, NSDate limitDate)
     {
-        OS.objc_msgSend(this.id, OS.sel_acceptInputForMode_1beforeDate_1, mode !is null ? mode.id : null, limitDate !is null ? limitDate.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_acceptInputForMode_1beforeDate_1, mode !is null ? mode.id_ : null, limitDate !is null ? limitDate.id_ : null);
     }
 
     public void addPort (NSPort aPort, NSString mode)
     {
-        OS.objc_msgSend(this.id, OS.sel_addPort_1forMode_1, aPort !is null ? aPort.id : null, mode !is null ? mode.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_addPort_1forMode_1, aPort !is null ? aPort.id_ : null, mode !is null ? mode.id_ : null);
     }
 
     public void addTimer (NSTimer timer, NSString mode)
     {
-        OS.objc_msgSend(this.id, OS.sel_addTimer_1forMode_1, timer !is null ? timer.id : null, mode !is null ? mode.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_addTimer_1forMode_1, timer !is null ? timer.id_ : null, mode !is null ? mode.id_ : null);
     }
 
     public void cancelPerformSelector (objc.SEL aSelector, id target, id arg)
     {
-        OS.objc_msgSend(this.id, OS.sel_cancelPerformSelector_1target_1argument_1, aSelector, target !is null ? target.id : null,
-                arg !is null ? arg.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_cancelPerformSelector_1target_1argument_1, aSelector, target !is null ? target.id_ : null,
+                arg !is null ? arg.id_ : null);
     }
 
     public void cancelPerformSelectorsWithTarget (id target)
     {
-        OS.objc_msgSend(this.id, OS.sel_cancelPerformSelectorsWithTarget_1, target !is null ? target.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_cancelPerformSelectorsWithTarget_1, target !is null ? target.id_ : null);
     }
 
     public void configureAsServer ()
     {
-        OS.objc_msgSend(this.id, OS.sel_configureAsServer);
+        OS.objc_msgSend(this.id_, OS.sel_configureAsServer);
     }
 
     public NSString currentMode ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_currentMode);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_currentMode);
         return result !is null ? new NSString(result) : null;
     }
 
@@ -83,12 +83,12 @@
 
     public CFRunLoopRef getCFRunLoop ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_getCFRunLoop);
+        return cast(CFRunLoopRef) OS.objc_msgSend(this.id_, OS.sel_getCFRunLoop);
     }
 
     public NSDate limitDateForMode (NSString mode)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_limitDateForMode_1, mode !is null ? mode.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_limitDateForMode_1, mode !is null ? mode.id_ : null);
         return result !is null ? new NSDate(result) : null;
     }
 
@@ -100,28 +100,28 @@
 
     public void performSelector (objc.SEL aSelector, id target, id arg, NSUInteger order, NSArray modes)
     {
-        OS.objc_msgSend(this.id, OS.sel_performSelector_1target_1argument_1order_1modes_1, aSelector, target !is null ? target.id : null,
-                arg !is null ? arg.id : null, order, modes !is null ? modes.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_performSelector_1target_1argument_1order_1modes_1, aSelector, target !is null ? target.id_ : null,
+                arg !is null ? arg.id_ : null, order, modes !is null ? modes.id_ : null);
     }
 
     public void removePort (NSPort aPort, NSString mode)
     {
-        OS.objc_msgSend(this.id, OS.sel_removePort_1forMode_1, aPort !is null ? aPort.id : null, mode !is null ? mode.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removePort_1forMode_1, aPort !is null ? aPort.id_ : null, mode !is null ? mode.id_ : null);
     }
 
     public void run ()
     {
-        OS.objc_msgSend(this.id, OS.sel_run);
+        OS.objc_msgSend(this.id_, OS.sel_run);
     }
 
     public bool runMode (NSString mode, NSDate limitDate)
     {
-        return OS.objc_msgSend(this.id, OS.sel_runMode_1beforeDate_1, mode !is null ? mode.id : null, limitDate !is null ? limitDate.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_runMode_1beforeDate_1, mode !is null ? mode.id_ : null, limitDate !is null ? limitDate.id_ : null) !is null;
     }
 
     public void runUntilDate (NSDate limitDate)
     {
-        OS.objc_msgSend(this.id, OS.sel_runUntilDate_1, limitDate !is null ? limitDate.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_runUntilDate_1, limitDate !is null ? limitDate.id_ : null);
     }
 
 }