diff dwt/internal/cocoa/NSCountedSet.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/NSCountedSet.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSCountedSet.d	Tue Aug 19 17:35:17 2008 +0200
@@ -36,29 +36,29 @@
 
     public void addObject (id object)
     {
-        OS.objc_msgSend(this.id, OS.sel_addObject_1, object !is null ? object.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_addObject_1, object !is null ? object.id_ : null);
     }
 
     public NSUInteger countForObject (id object)
     {
-        return OS.objc_msgSend(this.id, OS.sel_countForObject_1, object !is null ? object.id : null);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_countForObject_1, object !is null ? object.id_ : null);
     }
 
     public NSCountedSet initWithSet (NSSet set)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSet_1, set !is null ? set.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSet_1, set !is null ? set.id_ : null);
         return result !is null ? this : null;
     }
 
     public NSEnumerator objectEnumerator ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_objectEnumerator);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectEnumerator);
         return result !is null ? new NSEnumerator(result) : null;
     }
 
     public void removeObject (id object)
     {
-        OS.objc_msgSend(this.id, OS.sel_removeObject_1, object !is null ? object.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removeObject_1, object !is null ? object.id_ : null);
     }
 
 }