diff dwt/internal/cocoa/NSMutableDictionary.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/NSMutableDictionary.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSMutableDictionary.d	Tue Aug 19 17:35:17 2008 +0200
@@ -36,7 +36,7 @@
 
     public void addEntriesFromDictionary (NSDictionary otherDictionary)
     {
-        OS.objc_msgSend(this.id, OS.sel_addEntriesFromDictionary_1, otherDictionary !is null ? otherDictionary.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_addEntriesFromDictionary_1, otherDictionary !is null ? otherDictionary.id_ : null);
     }
 
     public static NSMutableDictionary dictionaryWithCapacity (NSUInteger numItems)
@@ -47,43 +47,43 @@
 
     public NSMutableDictionary initWithCapacity (NSUInteger numItems)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithCapacity_1, numItems);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithCapacity_1, numItems);
         return result !is null ? this : null;
     }
 
     public void removeAllObjects ()
     {
-        OS.objc_msgSend(this.id, OS.sel_removeAllObjects);
+        OS.objc_msgSend(this.id_, OS.sel_removeAllObjects);
     }
 
     public void removeObjectForKey (id aKey)
     {
-        OS.objc_msgSend(this.id, OS.sel_removeObjectForKey_1, aKey !is null ? aKey.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removeObjectForKey_1, aKey !is null ? aKey.id_ : null);
     }
 
     public void removeObjectsForKeys (NSArray keyArray)
     {
-        OS.objc_msgSend(this.id, OS.sel_removeObjectsForKeys_1, keyArray !is null ? keyArray.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removeObjectsForKeys_1, keyArray !is null ? keyArray.id_ : null);
     }
 
     public void setDictionary (NSDictionary otherDictionary)
     {
-        OS.objc_msgSend(this.id, OS.sel_setDictionary_1, otherDictionary !is null ? otherDictionary.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setDictionary_1, otherDictionary !is null ? otherDictionary.id_ : null);
     }
 
     public void setObject (id anObject, id aKey)
     {
-        OS.objc_msgSend(this.id, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id : null, aKey !is null ? aKey.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id_ : null, aKey !is null ? aKey.id_ : null);
     }
 
     public void setObject (id anObject, objc.id aKey)
     {
-        OS.objc_msgSend(this.id, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id : null, aKey);
+        OS.objc_msgSend(this.id_, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id_ : null, aKey);
     }
 
     public void setValue (id value, NSString key)
     {
-        OS.objc_msgSend(this.id, OS.sel_setValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setValue_1forKey_1, value !is null ? value.id_ : null, key !is null ? key.id_ : null);
     }
 
 }