Mercurial > projects > dwt-mac
comparison 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 |
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 NSUInteger countForObject (id object) | 42 public NSUInteger countForObject (id object) |
43 { | 43 { |
44 return OS.objc_msgSend(this.id, OS.sel_countForObject_1, object !is null ? object.id : null); | 44 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_countForObject_1, object !is null ? object.id_ : null); |
45 } | 45 } |
46 | 46 |
47 public NSCountedSet initWithSet (NSSet set) | 47 public NSCountedSet initWithSet (NSSet set) |
48 { | 48 { |
49 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSet_1, set !is null ? set.id : null); | 49 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSet_1, set !is null ? set.id_ : null); |
50 return result !is null ? this : null; | 50 return result !is null ? this : null; |
51 } | 51 } |
52 | 52 |
53 public NSEnumerator objectEnumerator () | 53 public NSEnumerator objectEnumerator () |
54 { | 54 { |
55 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectEnumerator); | 55 objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectEnumerator); |
56 return result !is null ? new NSEnumerator(result) : null; | 56 return result !is null ? new NSEnumerator(result) : null; |
57 } | 57 } |
58 | 58 |
59 public void removeObject (id object) | 59 public void removeObject (id object) |
60 { | 60 { |
61 OS.objc_msgSend(this.id, OS.sel_removeObject_1, object !is null ? object.id : null); | 61 OS.objc_msgSend(this.id_, OS.sel_removeObject_1, object !is null ? object.id_ : null); |
62 } | 62 } |
63 | 63 |
64 } | 64 } |