diff dwt/internal/cocoa/NSPortMessage.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/NSPortMessage.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSPortMessage.d	Tue Aug 19 17:35:17 2008 +0200
@@ -35,42 +35,42 @@
 
     public NSArray components ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_components);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_components);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSPortMessage initWithSendPort (NSPort sendPort, NSPort replyPort, NSArray components)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSendPort_1receivePort_1components_1, sendPort !is null ? sendPort.id : null,
-                replyPort !is null ? replyPort.id : null, components !is null ? components.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSendPort_1receivePort_1components_1, sendPort !is null ? sendPort.id_ : null,
+                replyPort !is null ? replyPort.id_ : null, components !is null ? components.id_ : null);
         return result !is null ? this : null;
     }
 
     public uint msgid ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_msgid);
+        return cast(uint) OS.objc_msgSend(this.id_, OS.sel_msgid);
     }
 
     public NSPort receivePort ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_receivePort);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_receivePort);
         return result !is null ? new NSPort(result) : null;
     }
 
     public bool sendBeforeDate (NSDate date)
     {
-        return OS.objc_msgSend(this.id, OS.sel_sendBeforeDate_1, date !is null ? date.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_sendBeforeDate_1, date !is null ? date.id_ : null) !is null;
     }
 
     public NSPort sendPort ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_sendPort);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_sendPort);
         return result !is null ? new NSPort(result) : null;
     }
 
     public void setMsgid (uint msgid)
     {
-        OS.objc_msgSend(this.id, OS.sel_setMsgid_1, msgid);
+        OS.objc_msgSend(this.id_, OS.sel_setMsgid_1, msgid);
     }
 
 }