comparison dwt/internal/cocoa/NSIndexSet.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
33 super(id); 33 super(id);
34 } 34 }
35 35
36 public bool containsIndex (NSUInteger value) 36 public bool containsIndex (NSUInteger value)
37 { 37 {
38 return OS.objc_msgSend(this.id, OS.sel_containsIndex_1, value) !is null; 38 return OS.objc_msgSend(this.id_, OS.sel_containsIndex_1, value) !is null;
39 } 39 }
40 40
41 public bool containsIndexes (NSIndexSet indexSet) 41 public bool containsIndexes (NSIndexSet indexSet)
42 { 42 {
43 return OS.objc_msgSend(this.id, OS.sel_containsIndexes_1, indexSet !is null ? indexSet.id : null) !is null; 43 return OS.objc_msgSend(this.id_, OS.sel_containsIndexes_1, indexSet !is null ? indexSet.id_ : null) !is null;
44 } 44 }
45 45
46 public bool containsIndexesInRange (NSRange range) 46 public bool containsIndexesInRange (NSRange range)
47 { 47 {
48 return OS.objc_msgSend(this.id, OS.sel_containsIndexesInRange_1, range) !is null; 48 return OS.objc_msgSend(this.id_, OS.sel_containsIndexesInRange_1, range) !is null;
49 } 49 }
50 50
51 public NSUInteger count () 51 public NSUInteger count ()
52 { 52 {
53 return OS.objc_msgSend(this.id, OS.sel_count); 53 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_count);
54 } 54 }
55 55
56 public NSUInteger countOfIndexesInRange (NSRange range) 56 public NSUInteger countOfIndexesInRange (NSRange range)
57 { 57 {
58 return OS.objc_msgSend(this.id, OS.sel_countOfIndexesInRange_1, range); 58 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_countOfIndexesInRange_1, range);
59 } 59 }
60 60
61 public NSUInteger firstIndex () 61 public NSUInteger firstIndex ()
62 { 62 {
63 return OS.objc_msgSend(this.id, OS.sel_firstIndex); 63 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_firstIndex);
64 } 64 }
65 65
66 public NSUInteger getIndexes (NSUInteger* indexBuffer, NSUInteger bufferSize, NSRangePointer range) 66 public NSUInteger getIndexes (NSUInteger* indexBuffer, NSUInteger bufferSize, NSRangePointer range)
67 { 67 {
68 return OS.objc_msgSend(this.id, OS.sel_getIndexes_1maxCount_1inIndexRange_1, indexBuffer, bufferSize, range); 68 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_getIndexes_1maxCount_1inIndexRange_1, indexBuffer, bufferSize, range);
69 } 69 }
70 70
71 public NSUInteger indexGreaterThanIndex (NSUInteger value) 71 public NSUInteger indexGreaterThanIndex (NSUInteger value)
72 { 72 {
73 return OS.objc_msgSend(this.id, OS.sel_indexGreaterThanIndex_1, value); 73 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexGreaterThanIndex_1, value);
74 } 74 }
75 75
76 public NSUInteger indexGreaterThanOrEqualToIndex (NSUInteger value) 76 public NSUInteger indexGreaterThanOrEqualToIndex (NSUInteger value)
77 { 77 {
78 return OS.objc_msgSend(this.id, OS.sel_indexGreaterThanOrEqualToIndex_1, value); 78 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexGreaterThanOrEqualToIndex_1, value);
79 } 79 }
80 80
81 public NSUInteger indexLessThanIndex (NSUInteger value) 81 public NSUInteger indexLessThanIndex (NSUInteger value)
82 { 82 {
83 return OS.objc_msgSend(this.id, OS.sel_indexLessThanIndex_1, value); 83 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexLessThanIndex_1, value);
84 } 84 }
85 85
86 public NSUInteger indexLessThanOrEqualToIndex (NSUInteger value) 86 public NSUInteger indexLessThanOrEqualToIndex (NSUInteger value)
87 { 87 {
88 return OS.objc_msgSend(this.id, OS.sel_indexLessThanOrEqualToIndex_1, value); 88 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexLessThanOrEqualToIndex_1, value);
89 } 89 }
90 90
91 public static id indexSet () 91 public static id indexSet ()
92 { 92 {
93 objc.id result = OS.objc_msgSend(OS.class_NSIndexSet, OS.sel_indexSet); 93 objc.id result = OS.objc_msgSend(OS.class_NSIndexSet, OS.sel_indexSet);
106 return result !is null ? new id(result) : null; 106 return result !is null ? new id(result) : null;
107 } 107 }
108 108
109 public id initWithIndex (NSUInteger value) 109 public id initWithIndex (NSUInteger value)
110 { 110 {
111 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIndex_1, value); 111 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIndex_1, value);
112 return result !is null ? new id(result) : null; 112 return result !is null ? new id(result) : null;
113 } 113 }
114 114
115 public id initWithIndexSet (NSIndexSet indexSet) 115 public id initWithIndexSet (NSIndexSet indexSet)
116 { 116 {
117 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIndexSet_1, indexSet !is null ? indexSet.id : null); 117 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIndexSet_1, indexSet !is null ? indexSet.id_ : null);
118 return result !is null ? new id(result) : null; 118 return result !is null ? new id(result) : null;
119 } 119 }
120 120
121 public id initWithIndexesInRange (NSRange range) 121 public id initWithIndexesInRange (NSRange range)
122 { 122 {
123 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIndexesInRange_1, range); 123 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIndexesInRange_1, range);
124 return result !is null ? new id(result) : null; 124 return result !is null ? new id(result) : null;
125 } 125 }
126 126
127 public bool intersectsIndexesInRange (NSRange range) 127 public bool intersectsIndexesInRange (NSRange range)
128 { 128 {
129 return OS.objc_msgSend(this.id, OS.sel_intersectsIndexesInRange_1, range) !is null; 129 return OS.objc_msgSend(this.id_, OS.sel_intersectsIndexesInRange_1, range) !is null;
130 } 130 }
131 131
132 public bool isEqualToIndexSet (NSIndexSet indexSet) 132 public bool isEqualToIndexSet (NSIndexSet indexSet)
133 { 133 {
134 return OS.objc_msgSend(this.id, OS.sel_isEqualToIndexSet_1, indexSet !is null ? indexSet.id : null) !is null; 134 return OS.objc_msgSend(this.id_, OS.sel_isEqualToIndexSet_1, indexSet !is null ? indexSet.id_ : null) !is null;
135 } 135 }
136 136
137 public NSUInteger lastIndex () 137 public NSUInteger lastIndex ()
138 { 138 {
139 return OS.objc_msgSend(this.id, OS.sel_lastIndex); 139 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_lastIndex);
140 } 140 }
141 141
142 } 142 }