Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSMutableSet.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 addObject (id object) | 37 public void addObject (id object) |
38 { | 38 { |
39 OS.objc_msgSend(this.id, OS.sel_addObject_1, object !is null ? object.id : null); | 39 OS.objc_msgSend(this.id_, OS.sel_addObject_1, object !is null ? object.id_ : null); |
40 } | 40 } |
41 | 41 |
42 public void addObjectsFromArray (NSArray array) | 42 public void addObjectsFromArray (NSArray array) |
43 { | 43 { |
44 OS.objc_msgSend(this.id, OS.sel_addObjectsFromArray_1, array !is null ? array.id : null); | 44 OS.objc_msgSend(this.id_, OS.sel_addObjectsFromArray_1, array !is null ? array.id_ : null); |
45 } | 45 } |
46 | 46 |
47 public void filterUsingPredicate (NSPredicate predicate) | 47 public void filterUsingPredicate (NSPredicate predicate) |
48 { | 48 { |
49 OS.objc_msgSend(this.id, OS.sel_filterUsingPredicate_1, predicate !is null ? predicate.id : null); | 49 OS.objc_msgSend(this.id_, OS.sel_filterUsingPredicate_1, predicate !is null ? predicate.id_ : null); |
50 } | 50 } |
51 | 51 |
52 public NSMutableSet initWithCapacity (NSUInteger numItems) | 52 public NSMutableSet initWithCapacity (NSUInteger numItems) |
53 { | 53 { |
54 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithCapacity_1, numItems); | 54 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithCapacity_1, numItems); |
55 return result !is null ? this : null; | 55 return result !is null ? this : null; |
56 } | 56 } |
57 | 57 |
58 public void intersectSet (NSSet otherSet) | 58 public void intersectSet (NSSet otherSet) |
59 { | 59 { |
60 OS.objc_msgSend(this.id, OS.sel_intersectSet_1, otherSet !is null ? otherSet.id : null); | 60 OS.objc_msgSend(this.id_, OS.sel_intersectSet_1, otherSet !is null ? otherSet.id_ : null); |
61 } | 61 } |
62 | 62 |
63 public void minusSet (NSSet otherSet) | 63 public void minusSet (NSSet otherSet) |
64 { | 64 { |
65 OS.objc_msgSend(this.id, OS.sel_minusSet_1, otherSet !is null ? otherSet.id : null); | 65 OS.objc_msgSend(this.id_, OS.sel_minusSet_1, otherSet !is null ? otherSet.id_ : null); |
66 } | 66 } |
67 | 67 |
68 public void removeAllObjects () | 68 public void removeAllObjects () |
69 { | 69 { |
70 OS.objc_msgSend(this.id, OS.sel_removeAllObjects); | 70 OS.objc_msgSend(this.id_, OS.sel_removeAllObjects); |
71 } | 71 } |
72 | 72 |
73 public void removeObject (id object) | 73 public void removeObject (id object) |
74 { | 74 { |
75 OS.objc_msgSend(this.id, OS.sel_removeObject_1, object !is null ? object.id : null); | 75 OS.objc_msgSend(this.id_, OS.sel_removeObject_1, object !is null ? object.id_ : null); |
76 } | 76 } |
77 | 77 |
78 public void setSet (NSSet otherSet) | 78 public void setSet (NSSet otherSet) |
79 { | 79 { |
80 OS.objc_msgSend(this.id, OS.sel_setSet_1, otherSet !is null ? otherSet.id : null); | 80 OS.objc_msgSend(this.id_, OS.sel_setSet_1, otherSet !is null ? otherSet.id_ : null); |
81 } | 81 } |
82 | 82 |
83 public static id setWithCapacity (NSUInteger numItems) | 83 public static id setWithCapacity (NSUInteger numItems) |
84 { | 84 { |
85 objc.id result = OS.objc_msgSend(OS.class_NSMutableSet, OS.sel_setWithCapacity_1, numItems); | 85 objc.id result = OS.objc_msgSend(OS.class_NSMutableSet, OS.sel_setWithCapacity_1, numItems); |
86 return result !is null ? new id(result) : null; | 86 return result !is null ? new id(result) : null; |
87 } | 87 } |
88 | 88 |
89 public void unionSet (NSSet otherSet) | 89 public void unionSet (NSSet otherSet) |
90 { | 90 { |
91 OS.objc_msgSend(this.id, OS.sel_unionSet_1, otherSet !is null ? otherSet.id : null); | 91 OS.objc_msgSend(this.id_, OS.sel_unionSet_1, otherSet !is null ? otherSet.id_ : null); |
92 } | 92 } |
93 | 93 |
94 } | 94 } |