comparison 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
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
34 super(id); 34 super(id);
35 } 35 }
36 36
37 public void addEntriesFromDictionary (NSDictionary otherDictionary) 37 public void addEntriesFromDictionary (NSDictionary otherDictionary)
38 { 38 {
39 OS.objc_msgSend(this.id, OS.sel_addEntriesFromDictionary_1, otherDictionary !is null ? otherDictionary.id : null); 39 OS.objc_msgSend(this.id_, OS.sel_addEntriesFromDictionary_1, otherDictionary !is null ? otherDictionary.id_ : null);
40 } 40 }
41 41
42 public static NSMutableDictionary dictionaryWithCapacity (NSUInteger numItems) 42 public static NSMutableDictionary dictionaryWithCapacity (NSUInteger numItems)
43 { 43 {
44 objc.id result = OS.objc_msgSend(OS.class_NSMutableDictionary, OS.sel_dictionaryWithCapacity_1, numItems); 44 objc.id result = OS.objc_msgSend(OS.class_NSMutableDictionary, OS.sel_dictionaryWithCapacity_1, numItems);
45 return result !is null ? new NSMutableDictionary(result) : null; 45 return result !is null ? new NSMutableDictionary(result) : null;
46 } 46 }
47 47
48 public NSMutableDictionary initWithCapacity (NSUInteger numItems) 48 public NSMutableDictionary initWithCapacity (NSUInteger numItems)
49 { 49 {
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithCapacity_1, numItems); 50 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithCapacity_1, numItems);
51 return result !is null ? this : null; 51 return result !is null ? this : null;
52 } 52 }
53 53
54 public void removeAllObjects () 54 public void removeAllObjects ()
55 { 55 {
56 OS.objc_msgSend(this.id, OS.sel_removeAllObjects); 56 OS.objc_msgSend(this.id_, OS.sel_removeAllObjects);
57 } 57 }
58 58
59 public void removeObjectForKey (id aKey) 59 public void removeObjectForKey (id aKey)
60 { 60 {
61 OS.objc_msgSend(this.id, OS.sel_removeObjectForKey_1, aKey !is null ? aKey.id : null); 61 OS.objc_msgSend(this.id_, OS.sel_removeObjectForKey_1, aKey !is null ? aKey.id_ : null);
62 } 62 }
63 63
64 public void removeObjectsForKeys (NSArray keyArray) 64 public void removeObjectsForKeys (NSArray keyArray)
65 { 65 {
66 OS.objc_msgSend(this.id, OS.sel_removeObjectsForKeys_1, keyArray !is null ? keyArray.id : null); 66 OS.objc_msgSend(this.id_, OS.sel_removeObjectsForKeys_1, keyArray !is null ? keyArray.id_ : null);
67 } 67 }
68 68
69 public void setDictionary (NSDictionary otherDictionary) 69 public void setDictionary (NSDictionary otherDictionary)
70 { 70 {
71 OS.objc_msgSend(this.id, OS.sel_setDictionary_1, otherDictionary !is null ? otherDictionary.id : null); 71 OS.objc_msgSend(this.id_, OS.sel_setDictionary_1, otherDictionary !is null ? otherDictionary.id_ : null);
72 } 72 }
73 73
74 public void setObject (id anObject, id aKey) 74 public void setObject (id anObject, id aKey)
75 { 75 {
76 OS.objc_msgSend(this.id, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id : null, aKey !is null ? aKey.id : null); 76 OS.objc_msgSend(this.id_, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id_ : null, aKey !is null ? aKey.id_ : null);
77 } 77 }
78 78
79 public void setObject (id anObject, objc.id aKey) 79 public void setObject (id anObject, objc.id aKey)
80 { 80 {
81 OS.objc_msgSend(this.id, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id : null, aKey); 81 OS.objc_msgSend(this.id_, OS.sel_setObject_1forKey_1, anObject !is null ? anObject.id_ : null, aKey);
82 } 82 }
83 83
84 public void setValue (id value, NSString key) 84 public void setValue (id value, NSString key)
85 { 85 {
86 OS.objc_msgSend(this.id, OS.sel_setValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null); 86 OS.objc_msgSend(this.id_, OS.sel_setValue_1forKey_1, value !is null ? value.id_ : null, key !is null ? key.id_ : null);
87 } 87 }
88 88
89 } 89 }