Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSNumberFormatter.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 |
---|---|
23 import dwt.internal.cocoa.NSNumber; | 23 import dwt.internal.cocoa.NSNumber; |
24 import dwt.internal.cocoa.NSString; | 24 import dwt.internal.cocoa.NSString; |
25 import dwt.internal.cocoa.OS; | 25 import dwt.internal.cocoa.OS; |
26 import objc = dwt.internal.objc.runtime; | 26 import objc = dwt.internal.objc.runtime; |
27 | 27 |
28 enum NSNumberFormatterBehavior | 28 enum NSNumberFormatterBehavior : NSUInteger |
29 { | 29 { |
30 NSNumberFormatterBehaviorDefault = 0, | 30 NSNumberFormatterBehaviorDefault = 0, |
31 NSNumberFormatterBehavior10_0 = 1000, | 31 NSNumberFormatterBehavior10_0 = 1000, |
32 NSNumberFormatterBehavior10_4 = 1040, | 32 NSNumberFormatterBehavior10_4 = 1040, |
33 } | 33 } |
34 | 34 |
35 alias NSNumberFormatterBehavior.NSNumberFormatterBehaviorDefault NSNumberFormatterBehaviorDefault; | 35 alias NSNumberFormatterBehavior.NSNumberFormatterBehaviorDefault NSNumberFormatterBehaviorDefault; |
36 alias NSNumberFormatterBehavior.NSNumberFormatterBehavior10_0 NSNumberFormatterBehavior10_0; | 36 alias NSNumberFormatterBehavior.NSNumberFormatterBehavior10_0 NSNumberFormatterBehavior10_0; |
37 alias NSNumberFormatterBehavior.NSNumberFormatterBehavior10_4 NSNumberFormatterBehavior10_4; | 37 alias NSNumberFormatterBehavior.NSNumberFormatterBehavior10_4 NSNumberFormatterBehavior10_4; |
38 | 38 |
39 enum NSNumberFormatterPadPosition | 39 enum NSNumberFormatterPadPosition : NSUInteger |
40 { | 40 { |
41 NSNumberFormatterPadBeforePrefix = kCFNumberFormatterPadBeforePrefix, | 41 NSNumberFormatterPadBeforePrefix = kCFNumberFormatterPadBeforePrefix, |
42 NSNumberFormatterPadAfterPrefix = kCFNumberFormatterPadAfterPrefix, | 42 NSNumberFormatterPadAfterPrefix = kCFNumberFormatterPadAfterPrefix, |
43 NSNumberFormatterPadBeforeSuffix = kCFNumberFormatterPadBeforeSuffix, | 43 NSNumberFormatterPadBeforeSuffix = kCFNumberFormatterPadBeforeSuffix, |
44 NSNumberFormatterPadAfterSuffix = kCFNumberFormatterPadAfterSuffix | 44 NSNumberFormatterPadAfterSuffix = 3//kCFNumberFormatterPadAfterSuffix |
45 } | 45 } |
46 | 46 |
47 NSNumberFormatterPadPosition.NSNumberFormatterPadBeforePrefix NSNumberFormatterPadBeforePrefix; | 47 alias NSNumberFormatterPadPosition.NSNumberFormatterPadBeforePrefix NSNumberFormatterPadBeforePrefix; |
48 NSNumberFormatterPadPosition.NSNumberFormatterPadAfterPrefix NSNumberFormatterPadAfterPrefix; | 48 alias NSNumberFormatterPadPosition.NSNumberFormatterPadAfterPrefix NSNumberFormatterPadAfterPrefix; |
49 NSNumberFormatterPadPosition.NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadBeforeSuffix; | 49 alias NSNumberFormatterPadPosition.NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadBeforeSuffix; |
50 NSNumberFormatterPadPosition.NSNumberFormatterPadAfterSuffix NSNumberFormatterPadAfterSuffix; | 50 alias NSNumberFormatterPadPosition.NSNumberFormatterPadAfterSuffix NSNumberFormatterPadAfterSuffix; |
51 | 51 |
52 enum NSNumberFormatterRoundingMode | 52 enum |
53 { | 53 { |
54 NSNumberFormatterRoundCeiling = kCFNumberFormatterRoundCeiling, | 54 NSNumberFormatterRoundCeiling = kCFNumberFormatterRoundCeiling, |
55 NSNumberFormatterRoundFloor = kCFNumberFormatterRoundFloor, | 55 NSNumberFormatterRoundFloor = kCFNumberFormatterRoundFloor, |
56 NSNumberFormatterRoundDown = kCFNumberFormatterRoundDown, | 56 NSNumberFormatterRoundDown = kCFNumberFormatterRoundDown, |
57 NSNumberFormatterRoundUp = kCFNumberFormatterRoundUp, | 57 NSNumberFormatterRoundUp = kCFNumberFormatterRoundUp, |
58 NSNumberFormatterRoundHalfEven = kCFNumberFormatterRoundHalfEven, | 58 NSNumberFormatterRoundHalfEven = kCFNumberFormatterRoundHalfEven, |
59 NSNumberFormatterRoundHalfDown = kCFNumberFormatterRoundHalfDown, | 59 NSNumberFormatterRoundHalfDown = kCFNumberFormatterRoundHalfDown, |
60 NSNumberFormatterRoundHalfUp = kCFNumberFormatterRoundHalfUp | 60 NSNumberFormatterRoundHalfUp = kCFNumberFormatterRoundHalfUp |
61 } | 61 } |
62 | 62 |
63 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundCeiling NSNumberFormatterRoundCeiling; | 63 alias NSUInteger NSNumberFormatterRoundingMode; |
64 | |
65 /*alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundCeiling NSNumberFormatterRoundCeiling; | |
64 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundFloor NSNumberFormatterRoundFloor; | 66 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundFloor NSNumberFormatterRoundFloor; |
65 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundDown NSNumberFormatterRoundDown; | 67 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundDown NSNumberFormatterRoundDown; |
66 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundUp NSNumberFormatterRoundUp; | 68 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundUp NSNumberFormatterRoundUp; |
67 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfEven NSNumberFormatterRoundHalfEven; | 69 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfEven NSNumberFormatterRoundHalfEven; |
68 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfDown NSNumberFormatterRoundCeiling; | 70 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfDown NSNumberFormatterRoundCeiling; |
69 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfUp NSNumberFormatterRoundHalfUp; | 71 alias NSNumberFormatterRoundingMode.NSNumberFormatterRoundHalfUp NSNumberFormatterRoundHalfUp;*/ |
72 | |
73 enum NSNumberFormatterStyle : NSUInteger | |
74 { | |
75 NSNumberFormatterNoStyle = kCFNumberFormatterNoStyle, | |
76 NSNumberFormatterDecimalStyle = kCFNumberFormatterDecimalStyle, | |
77 NSNumberFormatterCurrencyStyle = kCFNumberFormatterCurrencyStyle, | |
78 NSNumberFormatterPercentStyle = kCFNumberFormatterPercentStyle, | |
79 NSNumberFormatterScientificStyle = kCFNumberFormatterScientificStyle, | |
80 NSNumberFormatterSpellOutStyle = kCFNumberFormatterSpellOutStyle | |
81 } | |
82 | |
83 alias NSNumberFormatterStyle.NSNumberFormatterNoStyle NSNumberFormatterNoStyle; | |
84 alias NSNumberFormatterStyle.NSNumberFormatterDecimalStyle NSNumberFormatterDecimalStyle; | |
85 alias NSNumberFormatterStyle.NSNumberFormatterCurrencyStyle NSNumberFormatterCurrencyStyle; | |
86 alias NSNumberFormatterStyle.NSNumberFormatterPercentStyle NSNumberFormatterPercentStyle; | |
87 alias NSNumberFormatterStyle.NSNumberFormatterScientificStyle NSNumberFormatterScientificStyle; | |
88 alias NSNumberFormatterStyle.NSNumberFormatterSpellOutStyle NSNumberFormatterSpellOutStyle; | |
70 | 89 |
71 public class NSNumberFormatter : NSFormatter | 90 public class NSNumberFormatter : NSFormatter |
72 { | 91 { |
73 | 92 |
74 public this () | 93 public this () |
81 super(id); | 100 super(id); |
82 } | 101 } |
83 | 102 |
84 public bool allowsFloats () | 103 public bool allowsFloats () |
85 { | 104 { |
86 return OS.objc_msgSend(this.id, OS.sel_allowsFloats) !is null; | 105 return OS.objc_msgSend(this.id_, OS.sel_allowsFloats) !is null; |
87 } | 106 } |
88 | 107 |
89 public bool alwaysShowsDecimalSeparator () | 108 public bool alwaysShowsDecimalSeparator () |
90 { | 109 { |
91 return OS.objc_msgSend(this.id, OS.sel_alwaysShowsDecimalSeparator) !is null; | 110 return OS.objc_msgSend(this.id_, OS.sel_alwaysShowsDecimalSeparator) !is null; |
92 } | 111 } |
93 | 112 |
94 public NSAttributedString attributedStringForNil () | 113 public NSAttributedString attributedStringForNil () |
95 { | 114 { |
96 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedStringForNil); | 115 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedStringForNil); |
97 return result !is null ? new NSAttributedString(result) : null; | 116 return result !is null ? new NSAttributedString(result) : null; |
98 } | 117 } |
99 | 118 |
100 public NSAttributedString attributedStringForNotANumber () | 119 public NSAttributedString attributedStringForNotANumber () |
101 { | 120 { |
102 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedStringForNotANumber); | 121 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedStringForNotANumber); |
103 return result !is null ? new NSAttributedString(result) : null; | 122 return result !is null ? new NSAttributedString(result) : null; |
104 } | 123 } |
105 | 124 |
106 public NSAttributedString attributedStringForZero () | 125 public NSAttributedString attributedStringForZero () |
107 { | 126 { |
108 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedStringForZero); | 127 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedStringForZero); |
109 return result !is null ? new NSAttributedString(result) : null; | 128 return result !is null ? new NSAttributedString(result) : null; |
110 } | 129 } |
111 | 130 |
112 public NSString currencyCode () | 131 public NSString currencyCode () |
113 { | 132 { |
114 objc.id result = OS.objc_msgSend(this.id, OS.sel_currencyCode); | 133 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currencyCode); |
115 return result !is null ? new NSString(result) : null; | 134 return result !is null ? new NSString(result) : null; |
116 } | 135 } |
117 | 136 |
118 public NSString currencyDecimalSeparator () | 137 public NSString currencyDecimalSeparator () |
119 { | 138 { |
120 objc.id result = OS.objc_msgSend(this.id, OS.sel_currencyDecimalSeparator); | 139 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currencyDecimalSeparator); |
121 return result !is null ? new NSString(result) : null; | 140 return result !is null ? new NSString(result) : null; |
122 } | 141 } |
123 | 142 |
124 public NSString currencyGroupingSeparator () | 143 public NSString currencyGroupingSeparator () |
125 { | 144 { |
126 objc.id result = OS.objc_msgSend(this.id, OS.sel_currencyGroupingSeparator); | 145 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currencyGroupingSeparator); |
127 return result !is null ? new NSString(result) : null; | 146 return result !is null ? new NSString(result) : null; |
128 } | 147 } |
129 | 148 |
130 public NSString currencySymbol () | 149 public NSString currencySymbol () |
131 { | 150 { |
132 objc.id result = OS.objc_msgSend(this.id, OS.sel_currencySymbol); | 151 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currencySymbol); |
133 return result !is null ? new NSString(result) : null; | 152 return result !is null ? new NSString(result) : null; |
134 } | 153 } |
135 | 154 |
136 public NSString decimalSeparator () | 155 public NSString decimalSeparator () |
137 { | 156 { |
138 objc.id result = OS.objc_msgSend(this.id, OS.sel_decimalSeparator); | 157 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decimalSeparator); |
139 return result !is null ? new NSString(result) : null; | 158 return result !is null ? new NSString(result) : null; |
140 } | 159 } |
141 | 160 |
142 public static NSNumberFormatterBehavior defaultFormatterBehavior () | 161 public static NSNumberFormatterBehavior defaultFormatterBehavior () |
143 { | 162 { |
144 return cast(NSNumberFormatterBehavior) OS.objc_msgSend(OS.class_NSNumberFormatter, OS.sel_defaultFormatterBehavior); | 163 return cast(NSNumberFormatterBehavior) OS.objc_msgSend(OS.class_NSNumberFormatter, OS.sel_defaultFormatterBehavior); |
145 } | 164 } |
146 | 165 |
147 public NSString exponentSymbol () | 166 public NSString exponentSymbol () |
148 { | 167 { |
149 objc.id result = OS.objc_msgSend(this.id, OS.sel_exponentSymbol); | 168 objc.id result = OS.objc_msgSend(this.id_, OS.sel_exponentSymbol); |
150 return result !is null ? new NSString(result) : null; | 169 return result !is null ? new NSString(result) : null; |
151 } | 170 } |
152 | 171 |
153 public NSString format () | 172 public NSString format () |
154 { | 173 { |
155 objc.id result = OS.objc_msgSend(this.id, OS.sel_format); | 174 objc.id result = OS.objc_msgSend(this.id_, OS.sel_format); |
156 return result !is null ? new NSString(result) : null; | 175 return result !is null ? new NSString(result) : null; |
157 } | 176 } |
158 | 177 |
159 public NSUInteger formatWidth () | 178 public NSUInteger formatWidth () |
160 { | 179 { |
161 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_formatWidth); | 180 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_formatWidth); |
162 } | 181 } |
163 | 182 |
164 public NSNumberFormatterBehavior formatterBehavior () | 183 public NSNumberFormatterBehavior formatterBehavior () |
165 { | 184 { |
166 return cast(NSNumberFormatterBehavior) OS.objc_msgSend(this.id, OS.sel_formatterBehavior); | 185 return cast(NSNumberFormatterBehavior) OS.objc_msgSend(this.id_, OS.sel_formatterBehavior); |
167 } | 186 } |
168 | 187 |
169 public bool generatesDecimalNumbers () | 188 public bool generatesDecimalNumbers () |
170 { | 189 { |
171 return OS.objc_msgSend(this.id, OS.sel_generatesDecimalNumbers) !is null; | 190 return OS.objc_msgSend(this.id_, OS.sel_generatesDecimalNumbers) !is null; |
172 } | 191 } |
173 | 192 |
174 public bool getObjectValue (/*out*/objc.id* obj, NSString str, /*inout NSRange* */objc.id* rangep, /*out NSError** */objc.id** error) | 193 public bool getObjectValue (/*out*/objc.id* obj, NSString str, /*inout NSRange* */objc.id* rangep, /*out NSError** */objc.id** error) |
175 { | 194 { |
176 return OS.objc_msgSend(this.id, OS.sel_getObjectValue_1forString_1range_1error_1, obj, str !is null ? str.id : null, rangep, error) !is null; | 195 return OS.objc_msgSend(this.id_, OS.sel_getObjectValue_1forString_1range_1error_1, obj, str !is null ? str.id_ : null, rangep, error) !is null; |
177 } | 196 } |
178 | 197 |
179 public NSString groupingSeparator () | 198 public NSString groupingSeparator () |
180 { | 199 { |
181 objc.id result = OS.objc_msgSend(this.id, OS.sel_groupingSeparator); | 200 objc.id result = OS.objc_msgSend(this.id_, OS.sel_groupingSeparator); |
182 return result !is null ? new NSString(result) : null; | 201 return result !is null ? new NSString(result) : null; |
183 } | 202 } |
184 | 203 |
185 public NSUInteger groupingSize () | 204 public NSUInteger groupingSize () |
186 { | 205 { |
187 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_groupingSize); | 206 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_groupingSize); |
188 } | 207 } |
189 | 208 |
190 public bool hasThousandSeparators () | 209 public bool hasThousandSeparators () |
191 { | 210 { |
192 return OS.objc_msgSend(this.id, OS.sel_hasThousandSeparators) !is null; | 211 return OS.objc_msgSend(this.id_, OS.sel_hasThousandSeparators) !is null; |
193 } | 212 } |
194 | 213 |
195 public NSString internationalCurrencySymbol () | 214 public NSString internationalCurrencySymbol () |
196 { | 215 { |
197 objc.id result = OS.objc_msgSend(this.id, OS.sel_internationalCurrencySymbol); | 216 objc.id result = OS.objc_msgSend(this.id_, OS.sel_internationalCurrencySymbol); |
198 return result !is null ? new NSString(result) : null; | 217 return result !is null ? new NSString(result) : null; |
199 } | 218 } |
200 | 219 |
201 public bool isLenient () | 220 public bool isLenient () |
202 { | 221 { |
203 return OS.objc_msgSend(this.id, OS.sel_isLenient) !is null; | 222 return OS.objc_msgSend(this.id_, OS.sel_isLenient) !is null; |
204 } | 223 } |
205 | 224 |
206 public bool isPartialStringValidationEnabled () | 225 public bool isPartialStringValidationEnabled () |
207 { | 226 { |
208 return OS.objc_msgSend(this.id, OS.sel_isPartialStringValidationEnabled) !is null; | 227 return OS.objc_msgSend(this.id_, OS.sel_isPartialStringValidationEnabled) !is null; |
209 } | 228 } |
210 | 229 |
211 public NSLocale locale () | 230 public NSLocale locale () |
212 { | 231 { |
213 objc.id result = OS.objc_msgSend(this.id, OS.sel_locale); | 232 objc.id result = OS.objc_msgSend(this.id_, OS.sel_locale); |
214 return result !is null ? new NSLocale(result) : null; | 233 return result !is null ? new NSLocale(result) : null; |
215 } | 234 } |
216 | 235 |
217 public bool localizesFormat () | 236 public bool localizesFormat () |
218 { | 237 { |
219 return OS.objc_msgSend(this.id, OS.sel_localizesFormat) !is null; | 238 return OS.objc_msgSend(this.id_, OS.sel_localizesFormat) !is null; |
220 } | 239 } |
221 | 240 |
222 public NSNumber maximum () | 241 public NSNumber maximum () |
223 { | 242 { |
224 objc.id result = OS.objc_msgSend(this.id, OS.sel_maximum); | 243 objc.id result = OS.objc_msgSend(this.id_, OS.sel_maximum); |
225 return result !is null ? new NSNumber(result) : null; | 244 return result !is null ? new NSNumber(result) : null; |
226 } | 245 } |
227 | 246 |
228 public NSUInteger maximumFractionDigits () | 247 public NSUInteger maximumFractionDigits () |
229 { | 248 { |
230 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_maximumFractionDigits); | 249 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_maximumFractionDigits); |
231 } | 250 } |
232 | 251 |
233 public NSUInteger maximumIntegerDigits () | 252 public NSUInteger maximumIntegerDigits () |
234 { | 253 { |
235 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_maximumIntegerDigits); | 254 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_maximumIntegerDigits); |
236 } | 255 } |
237 | 256 |
238 public NSUInteger maximumSignificantDigits () | 257 public NSUInteger maximumSignificantDigits () |
239 { | 258 { |
240 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_maximumSignificantDigits); | 259 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_maximumSignificantDigits); |
241 } | 260 } |
242 | 261 |
243 public NSNumber minimum () | 262 public NSNumber minimum () |
244 { | 263 { |
245 objc.id result = OS.objc_msgSend(this.id, OS.sel_minimum); | 264 objc.id result = OS.objc_msgSend(this.id_, OS.sel_minimum); |
246 return result !is null ? new NSNumber(result) : null; | 265 return result !is null ? new NSNumber(result) : null; |
247 } | 266 } |
248 | 267 |
249 public NSUInteger minimumFractionDigits () | 268 public NSUInteger minimumFractionDigits () |
250 { | 269 { |
251 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_minimumFractionDigits); | 270 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_minimumFractionDigits); |
252 } | 271 } |
253 | 272 |
254 public NSUInteger minimumIntegerDigits () | 273 public NSUInteger minimumIntegerDigits () |
255 { | 274 { |
256 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_minimumIntegerDigits); | 275 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_minimumIntegerDigits); |
257 } | 276 } |
258 | 277 |
259 public NSUInteger minimumSignificantDigits () | 278 public NSUInteger minimumSignificantDigits () |
260 { | 279 { |
261 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_minimumSignificantDigits); | 280 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_minimumSignificantDigits); |
262 } | 281 } |
263 | 282 |
264 public NSString minusSign () | 283 public NSString minusSign () |
265 { | 284 { |
266 objc.id result = OS.objc_msgSend(this.id, OS.sel_minusSign); | 285 objc.id result = OS.objc_msgSend(this.id_, OS.sel_minusSign); |
267 return result !is null ? new NSString(result) : null; | 286 return result !is null ? new NSString(result) : null; |
268 } | 287 } |
269 | 288 |
270 public NSNumber multiplier () | 289 public NSNumber multiplier () |
271 { | 290 { |
272 objc.id result = OS.objc_msgSend(this.id, OS.sel_multiplier); | 291 objc.id result = OS.objc_msgSend(this.id_, OS.sel_multiplier); |
273 return result !is null ? new NSNumber(result) : null; | 292 return result !is null ? new NSNumber(result) : null; |
274 } | 293 } |
275 | 294 |
276 public NSString negativeFormat () | 295 public NSString negativeFormat () |
277 { | 296 { |
278 objc.id result = OS.objc_msgSend(this.id, OS.sel_negativeFormat); | 297 objc.id result = OS.objc_msgSend(this.id_, OS.sel_negativeFormat); |
279 return result !is null ? new NSString(result) : null; | 298 return result !is null ? new NSString(result) : null; |
280 } | 299 } |
281 | 300 |
282 public NSString negativeInfinitySymbol () | 301 public NSString negativeInfinitySymbol () |
283 { | 302 { |
284 objc.id result = OS.objc_msgSend(this.id, OS.sel_negativeInfinitySymbol); | 303 objc.id result = OS.objc_msgSend(this.id_, OS.sel_negativeInfinitySymbol); |
285 return result !is null ? new NSString(result) : null; | 304 return result !is null ? new NSString(result) : null; |
286 } | 305 } |
287 | 306 |
288 public NSString negativePrefix () | 307 public NSString negativePrefix () |
289 { | 308 { |
290 objc.id result = OS.objc_msgSend(this.id, OS.sel_negativePrefix); | 309 objc.id result = OS.objc_msgSend(this.id_, OS.sel_negativePrefix); |
291 return result !is null ? new NSString(result) : null; | 310 return result !is null ? new NSString(result) : null; |
292 } | 311 } |
293 | 312 |
294 public NSString negativeSuffix () | 313 public NSString negativeSuffix () |
295 { | 314 { |
296 objc.id result = OS.objc_msgSend(this.id, OS.sel_negativeSuffix); | 315 objc.id result = OS.objc_msgSend(this.id_, OS.sel_negativeSuffix); |
297 return result !is null ? new NSString(result) : null; | 316 return result !is null ? new NSString(result) : null; |
298 } | 317 } |
299 | 318 |
300 public NSString nilSymbol () | 319 public NSString nilSymbol () |
301 { | 320 { |
302 objc.id result = OS.objc_msgSend(this.id, OS.sel_nilSymbol); | 321 objc.id result = OS.objc_msgSend(this.id_, OS.sel_nilSymbol); |
303 return result !is null ? new NSString(result) : null; | 322 return result !is null ? new NSString(result) : null; |
304 } | 323 } |
305 | 324 |
306 public NSString notANumberSymbol () | 325 public NSString notANumberSymbol () |
307 { | 326 { |
308 objc.id result = OS.objc_msgSend(this.id, OS.sel_notANumberSymbol); | 327 objc.id result = OS.objc_msgSend(this.id_, OS.sel_notANumberSymbol); |
309 return result !is null ? new NSString(result) : null; | 328 return result !is null ? new NSString(result) : null; |
310 } | 329 } |
311 | 330 |
312 public NSNumber numberFromString (NSString string) | 331 public NSNumber numberFromString (NSString string) |
313 { | 332 { |
314 objc.id result = OS.objc_msgSend(this.id, OS.sel_numberFromString_1, string !is null ? string.id : null); | 333 objc.id result = OS.objc_msgSend(this.id_, OS.sel_numberFromString_1, string !is null ? string.id_ : null); |
315 return result !is null ? new NSNumber(result) : null; | 334 return result !is null ? new NSNumber(result) : null; |
316 } | 335 } |
317 | 336 |
318 public NSNumberFormatterStyle numberStyle () | 337 public NSNumberFormatterStyle numberStyle () |
319 { | 338 { |
320 return cast(NSNumberFormatterStyle) OS.objc_msgSend(this.id, OS.sel_numberStyle); | 339 return cast(NSNumberFormatterStyle) OS.objc_msgSend(this.id_, OS.sel_numberStyle); |
321 } | 340 } |
322 | 341 |
323 public NSString paddingCharacter () | 342 public NSString paddingCharacter () |
324 { | 343 { |
325 objc.id result = OS.objc_msgSend(this.id, OS.sel_paddingCharacter); | 344 objc.id result = OS.objc_msgSend(this.id_, OS.sel_paddingCharacter); |
326 return result !is null ? new NSString(result) : null; | 345 return result !is null ? new NSString(result) : null; |
327 } | 346 } |
328 | 347 |
329 public NSNumberFormatterPadPosition paddingPosition () | 348 public NSNumberFormatterPadPosition paddingPosition () |
330 { | 349 { |
331 return cast(NSNumberFormatterPadPosition) OS.objc_msgSend(this.id, OS.sel_paddingPosition); | 350 return cast(NSNumberFormatterPadPosition) OS.objc_msgSend(this.id_, OS.sel_paddingPosition); |
332 } | 351 } |
333 | 352 |
334 public NSString perMillSymbol () | 353 public NSString perMillSymbol () |
335 { | 354 { |
336 objc.id result = OS.objc_msgSend(this.id, OS.sel_perMillSymbol); | 355 objc.id result = OS.objc_msgSend(this.id_, OS.sel_perMillSymbol); |
337 return result !is null ? new NSString(result) : null; | 356 return result !is null ? new NSString(result) : null; |
338 } | 357 } |
339 | 358 |
340 public NSString percentSymbol () | 359 public NSString percentSymbol () |
341 { | 360 { |
342 objc.id result = OS.objc_msgSend(this.id, OS.sel_percentSymbol); | 361 objc.id result = OS.objc_msgSend(this.id_, OS.sel_percentSymbol); |
343 return result !is null ? new NSString(result) : null; | 362 return result !is null ? new NSString(result) : null; |
344 } | 363 } |
345 | 364 |
346 public NSString plusSign () | 365 public NSString plusSign () |
347 { | 366 { |
348 objc.id result = OS.objc_msgSend(this.id, OS.sel_plusSign); | 367 objc.id result = OS.objc_msgSend(this.id_, OS.sel_plusSign); |
349 return result !is null ? new NSString(result) : null; | 368 return result !is null ? new NSString(result) : null; |
350 } | 369 } |
351 | 370 |
352 public NSString positiveFormat () | 371 public NSString positiveFormat () |
353 { | 372 { |
354 objc.id result = OS.objc_msgSend(this.id, OS.sel_positiveFormat); | 373 objc.id result = OS.objc_msgSend(this.id_, OS.sel_positiveFormat); |
355 return result !is null ? new NSString(result) : null; | 374 return result !is null ? new NSString(result) : null; |
356 } | 375 } |
357 | 376 |
358 public NSString positiveInfinitySymbol () | 377 public NSString positiveInfinitySymbol () |
359 { | 378 { |
360 objc.id result = OS.objc_msgSend(this.id, OS.sel_positiveInfinitySymbol); | 379 objc.id result = OS.objc_msgSend(this.id_, OS.sel_positiveInfinitySymbol); |
361 return result !is null ? new NSString(result) : null; | 380 return result !is null ? new NSString(result) : null; |
362 } | 381 } |
363 | 382 |
364 public NSString positivePrefix () | 383 public NSString positivePrefix () |
365 { | 384 { |
366 objc.id result = OS.objc_msgSend(this.id, OS.sel_positivePrefix); | 385 objc.id result = OS.objc_msgSend(this.id_, OS.sel_positivePrefix); |
367 return result !is null ? new NSString(result) : null; | 386 return result !is null ? new NSString(result) : null; |
368 } | 387 } |
369 | 388 |
370 public NSString positiveSuffix () | 389 public NSString positiveSuffix () |
371 { | 390 { |
372 objc.id result = OS.objc_msgSend(this.id, OS.sel_positiveSuffix); | 391 objc.id result = OS.objc_msgSend(this.id_, OS.sel_positiveSuffix); |
373 return result !is null ? new NSString(result) : null; | 392 return result !is null ? new NSString(result) : null; |
374 } | 393 } |
375 | 394 |
376 public NSDecimalNumberHandler roundingBehavior () | 395 public NSDecimalNumberHandler roundingBehavior () |
377 { | 396 { |
378 objc.id result = OS.objc_msgSend(this.id, OS.sel_roundingBehavior); | 397 objc.id result = OS.objc_msgSend(this.id_, OS.sel_roundingBehavior); |
379 return result !is null ? new NSDecimalNumberHandler(result) : null; | 398 return result !is null ? new NSDecimalNumberHandler(result) : null; |
380 } | 399 } |
381 | 400 |
382 public NSNumber roundingIncrement () | 401 public NSNumber roundingIncrement () |
383 { | 402 { |
384 objc.id result = OS.objc_msgSend(this.id, OS.sel_roundingIncrement); | 403 objc.id result = OS.objc_msgSend(this.id_, OS.sel_roundingIncrement); |
385 return result !is null ? new NSNumber(result) : null; | 404 return result !is null ? new NSNumber(result) : null; |
386 } | 405 } |
387 | 406 |
388 public NSNumberFormatterRoundingMode roundingMode () | 407 public NSNumberFormatterRoundingMode roundingMode () |
389 { | 408 { |
390 return cast(NSNumberFormatterRoundingMode) OS.objc_msgSend(this.id, OS.sel_roundingMode); | 409 return cast(NSNumberFormatterRoundingMode) OS.objc_msgSend(this.id_, OS.sel_roundingMode); |
391 } | 410 } |
392 | 411 |
393 public NSUInteger secondaryGroupingSize () | 412 public NSUInteger secondaryGroupingSize () |
394 { | 413 { |
395 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_secondaryGroupingSize); | 414 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_secondaryGroupingSize); |
396 } | 415 } |
397 | 416 |
398 public void setAllowsFloats (bool flag) | 417 public void setAllowsFloats (bool flag) |
399 { | 418 { |
400 OS.objc_msgSend(this.id, OS.sel_setAllowsFloats_1, flag); | 419 OS.objc_msgSend(this.id_, OS.sel_setAllowsFloats_1, flag); |
401 } | 420 } |
402 | 421 |
403 public void setAlwaysShowsDecimalSeparator (bool b) | 422 public void setAlwaysShowsDecimalSeparator (bool b) |
404 { | 423 { |
405 OS.objc_msgSend(this.id, OS.sel_setAlwaysShowsDecimalSeparator_1, b); | 424 OS.objc_msgSend(this.id_, OS.sel_setAlwaysShowsDecimalSeparator_1, b); |
406 } | 425 } |
407 | 426 |
408 public void setAttributedStringForNil (NSAttributedString newAttributedString) | 427 public void setAttributedStringForNil (NSAttributedString newAttributedString) |
409 { | 428 { |
410 OS.objc_msgSend(this.id, OS.sel_setAttributedStringForNil_1, newAttributedString !is null ? newAttributedString.id : null); | 429 OS.objc_msgSend(this.id_, OS.sel_setAttributedStringForNil_1, newAttributedString !is null ? newAttributedString.id_ : null); |
411 } | 430 } |
412 | 431 |
413 public void setAttributedStringForNotANumber (NSAttributedString newAttributedString) | 432 public void setAttributedStringForNotANumber (NSAttributedString newAttributedString) |
414 { | 433 { |
415 OS.objc_msgSend(this.id, OS.sel_setAttributedStringForNotANumber_1, newAttributedString !is null ? newAttributedString.id : null); | 434 OS.objc_msgSend(this.id_, OS.sel_setAttributedStringForNotANumber_1, newAttributedString !is null ? newAttributedString.id_ : null); |
416 } | 435 } |
417 | 436 |
418 public void setAttributedStringForZero (NSAttributedString newAttributedString) | 437 public void setAttributedStringForZero (NSAttributedString newAttributedString) |
419 { | 438 { |
420 OS.objc_msgSend(this.id, OS.sel_setAttributedStringForZero_1, newAttributedString !is null ? newAttributedString.id : null); | 439 OS.objc_msgSend(this.id_, OS.sel_setAttributedStringForZero_1, newAttributedString !is null ? newAttributedString.id_ : null); |
421 } | 440 } |
422 | 441 |
423 public void setCurrencyCode (NSString string) | 442 public void setCurrencyCode (NSString string) |
424 { | 443 { |
425 OS.objc_msgSend(this.id, OS.sel_setCurrencyCode_1, string !is null ? string.id : null); | 444 OS.objc_msgSend(this.id_, OS.sel_setCurrencyCode_1, string !is null ? string.id_ : null); |
426 } | 445 } |
427 | 446 |
428 public void setCurrencyDecimalSeparator (NSString string) | 447 public void setCurrencyDecimalSeparator (NSString string) |
429 { | 448 { |
430 OS.objc_msgSend(this.id, OS.sel_setCurrencyDecimalSeparator_1, string !is null ? string.id : null); | 449 OS.objc_msgSend(this.id_, OS.sel_setCurrencyDecimalSeparator_1, string !is null ? string.id_ : null); |
431 } | 450 } |
432 | 451 |
433 public void setCurrencyGroupingSeparator (NSString string) | 452 public void setCurrencyGroupingSeparator (NSString string) |
434 { | 453 { |
435 OS.objc_msgSend(this.id, OS.sel_setCurrencyGroupingSeparator_1, string !is null ? string.id : null); | 454 OS.objc_msgSend(this.id_, OS.sel_setCurrencyGroupingSeparator_1, string !is null ? string.id_ : null); |
436 } | 455 } |
437 | 456 |
438 public void setCurrencySymbol (NSString string) | 457 public void setCurrencySymbol (NSString string) |
439 { | 458 { |
440 OS.objc_msgSend(this.id, OS.sel_setCurrencySymbol_1, string !is null ? string.id : null); | 459 OS.objc_msgSend(this.id_, OS.sel_setCurrencySymbol_1, string !is null ? string.id_ : null); |
441 } | 460 } |
442 | 461 |
443 public void setDecimalSeparator (NSString string) | 462 public void setDecimalSeparator (NSString string) |
444 { | 463 { |
445 OS.objc_msgSend(this.id, OS.sel_setDecimalSeparator_1, string !is null ? string.id : null); | 464 OS.objc_msgSend(this.id_, OS.sel_setDecimalSeparator_1, string !is null ? string.id_ : null); |
446 } | 465 } |
447 | 466 |
448 public static void setDefaultFormatterBehavior (NSNumberFormatterBehavior behavior) | 467 public static void setDefaultFormatterBehavior (NSNumberFormatterBehavior behavior) |
449 { | 468 { |
450 OS.objc_msgSend(OS.class_NSNumberFormatter, OS.sel_setDefaultFormatterBehavior_1, behavior); | 469 OS.objc_msgSend(OS.class_NSNumberFormatter, OS.sel_setDefaultFormatterBehavior_1, behavior); |
451 } | 470 } |
452 | 471 |
453 public void setExponentSymbol (NSString string) | 472 public void setExponentSymbol (NSString string) |
454 { | 473 { |
455 OS.objc_msgSend(this.id, OS.sel_setExponentSymbol_1, string !is null ? string.id : null); | 474 OS.objc_msgSend(this.id_, OS.sel_setExponentSymbol_1, string !is null ? string.id_ : null); |
456 } | 475 } |
457 | 476 |
458 public void setFormat (NSString string) | 477 public void setFormat (NSString string) |
459 { | 478 { |
460 OS.objc_msgSend(this.id, OS.sel_setFormat_1, string !is null ? string.id : null); | 479 OS.objc_msgSend(this.id_, OS.sel_setFormat_1, string !is null ? string.id_ : null); |
461 } | 480 } |
462 | 481 |
463 public void setFormatWidth (NSUInteger number) | 482 public void setFormatWidth (NSUInteger number) |
464 { | 483 { |
465 OS.objc_msgSend(this.id, OS.sel_setFormatWidth_1, number); | 484 OS.objc_msgSend(this.id_, OS.sel_setFormatWidth_1, number); |
466 } | 485 } |
467 | 486 |
468 public void setFormatterBehavior (NSNumberFormatterBehavior behavior) | 487 public void setFormatterBehavior (NSNumberFormatterBehavior behavior) |
469 { | 488 { |
470 OS.objc_msgSend(this.id, OS.sel_setFormatterBehavior_1, behavior); | 489 OS.objc_msgSend(this.id_, OS.sel_setFormatterBehavior_1, behavior); |
471 } | 490 } |
472 | 491 |
473 public void setGeneratesDecimalNumbers (bool b) | 492 public void setGeneratesDecimalNumbers (bool b) |
474 { | 493 { |
475 OS.objc_msgSend(this.id, OS.sel_setGeneratesDecimalNumbers_1, b); | 494 OS.objc_msgSend(this.id_, OS.sel_setGeneratesDecimalNumbers_1, b); |
476 } | 495 } |
477 | 496 |
478 public void setGroupingSeparator (NSString string) | 497 public void setGroupingSeparator (NSString string) |
479 { | 498 { |
480 OS.objc_msgSend(this.id, OS.sel_setGroupingSeparator_1, string !is null ? string.id : null); | 499 OS.objc_msgSend(this.id_, OS.sel_setGroupingSeparator_1, string !is null ? string.id_ : null); |
481 } | 500 } |
482 | 501 |
483 public void setGroupingSize (NSUInteger number) | 502 public void setGroupingSize (NSUInteger number) |
484 { | 503 { |
485 OS.objc_msgSend(this.id, OS.sel_setGroupingSize_1, number); | 504 OS.objc_msgSend(this.id_, OS.sel_setGroupingSize_1, number); |
486 } | 505 } |
487 | 506 |
488 public void setHasThousandSeparators (bool flag) | 507 public void setHasThousandSeparators (bool flag) |
489 { | 508 { |
490 OS.objc_msgSend(this.id, OS.sel_setHasThousandSeparators_1, flag); | 509 OS.objc_msgSend(this.id_, OS.sel_setHasThousandSeparators_1, flag); |
491 } | 510 } |
492 | 511 |
493 public void setInternationalCurrencySymbol (NSString string) | 512 public void setInternationalCurrencySymbol (NSString string) |
494 { | 513 { |
495 OS.objc_msgSend(this.id, OS.sel_setInternationalCurrencySymbol_1, string !is null ? string.id : null); | 514 OS.objc_msgSend(this.id_, OS.sel_setInternationalCurrencySymbol_1, string !is null ? string.id_ : null); |
496 } | 515 } |
497 | 516 |
498 public void setLenient (bool b) | 517 public void setLenient (bool b) |
499 { | 518 { |
500 OS.objc_msgSend(this.id, OS.sel_setLenient_1, b); | 519 OS.objc_msgSend(this.id_, OS.sel_setLenient_1, b); |
501 } | 520 } |
502 | 521 |
503 public void setLocale (NSLocale locale) | 522 public void setLocale (NSLocale locale) |
504 { | 523 { |
505 OS.objc_msgSend(this.id, OS.sel_setLocale_1, locale !is null ? locale.id : null); | 524 OS.objc_msgSend(this.id_, OS.sel_setLocale_1, locale !is null ? locale.id_ : null); |
506 } | 525 } |
507 | 526 |
508 public void setLocalizesFormat (bool flag) | 527 public void setLocalizesFormat (bool flag) |
509 { | 528 { |
510 OS.objc_msgSend(this.id, OS.sel_setLocalizesFormat_1, flag); | 529 OS.objc_msgSend(this.id_, OS.sel_setLocalizesFormat_1, flag); |
511 } | 530 } |
512 | 531 |
513 public void setMaximum (NSNumber number) | 532 public void setMaximum (NSNumber number) |
514 { | 533 { |
515 OS.objc_msgSend(this.id, OS.sel_setMaximum_1, number !is null ? number.id : null); | 534 OS.objc_msgSend(this.id_, OS.sel_setMaximum_1, number !is null ? number.id_ : null); |
516 } | 535 } |
517 | 536 |
518 public void setMaximumFractionDigits (NSUInteger number) | 537 public void setMaximumFractionDigits (NSUInteger number) |
519 { | 538 { |
520 OS.objc_msgSend(this.id, OS.sel_setMaximumFractionDigits_1, number); | 539 OS.objc_msgSend(this.id_, OS.sel_setMaximumFractionDigits_1, number); |
521 } | 540 } |
522 | 541 |
523 public void setMaximumIntegerDigits (NSUInteger number) | 542 public void setMaximumIntegerDigits (NSUInteger number) |
524 { | 543 { |
525 OS.objc_msgSend(this.id, OS.sel_setMaximumIntegerDigits_1, number); | 544 OS.objc_msgSend(this.id_, OS.sel_setMaximumIntegerDigits_1, number); |
526 } | 545 } |
527 | 546 |
528 public void setMaximumSignificantDigits (NSUInteger number) | 547 public void setMaximumSignificantDigits (NSUInteger number) |
529 { | 548 { |
530 OS.objc_msgSend(this.id, OS.sel_setMaximumSignificantDigits_1, number); | 549 OS.objc_msgSend(this.id_, OS.sel_setMaximumSignificantDigits_1, number); |
531 } | 550 } |
532 | 551 |
533 public void setMinimum (NSNumber number) | 552 public void setMinimum (NSNumber number) |
534 { | 553 { |
535 OS.objc_msgSend(this.id, OS.sel_setMinimum_1, number !is null ? number.id : null); | 554 OS.objc_msgSend(this.id_, OS.sel_setMinimum_1, number !is null ? number.id_ : null); |
536 } | 555 } |
537 | 556 |
538 public void setMinimumFractionDigits (NSUInteger number) | 557 public void setMinimumFractionDigits (NSUInteger number) |
539 { | 558 { |
540 OS.objc_msgSend(this.id, OS.sel_setMinimumFractionDigits_1, number); | 559 OS.objc_msgSend(this.id_, OS.sel_setMinimumFractionDigits_1, number); |
541 } | 560 } |
542 | 561 |
543 public void setMinimumIntegerDigits (NSUInteger number) | 562 public void setMinimumIntegerDigits (NSUInteger number) |
544 { | 563 { |
545 OS.objc_msgSend(this.id, OS.sel_setMinimumIntegerDigits_1, number); | 564 OS.objc_msgSend(this.id_, OS.sel_setMinimumIntegerDigits_1, number); |
546 } | 565 } |
547 | 566 |
548 public void setMinimumSignificantDigits (NSUInteger number) | 567 public void setMinimumSignificantDigits (NSUInteger number) |
549 { | 568 { |
550 OS.objc_msgSend(this.id, OS.sel_setMinimumSignificantDigits_1, number); | 569 OS.objc_msgSend(this.id_, OS.sel_setMinimumSignificantDigits_1, number); |
551 } | 570 } |
552 | 571 |
553 public void setMinusSign (NSString string) | 572 public void setMinusSign (NSString string) |
554 { | 573 { |
555 OS.objc_msgSend(this.id, OS.sel_setMinusSign_1, string !is null ? string.id : null); | 574 OS.objc_msgSend(this.id_, OS.sel_setMinusSign_1, string !is null ? string.id_ : null); |
556 } | 575 } |
557 | 576 |
558 public void setMultiplier (NSNumber number) | 577 public void setMultiplier (NSNumber number) |
559 { | 578 { |
560 OS.objc_msgSend(this.id, OS.sel_setMultiplier_1, number !is null ? number.id : null); | 579 OS.objc_msgSend(this.id_, OS.sel_setMultiplier_1, number !is null ? number.id_ : null); |
561 } | 580 } |
562 | 581 |
563 public void setNegativeFormat (NSString format) | 582 public void setNegativeFormat (NSString format) |
564 { | 583 { |
565 OS.objc_msgSend(this.id, OS.sel_setNegativeFormat_1, format !is null ? format.id : null); | 584 OS.objc_msgSend(this.id_, OS.sel_setNegativeFormat_1, format !is null ? format.id_ : null); |
566 } | 585 } |
567 | 586 |
568 public void setNegativeInfinitySymbol (NSString string) | 587 public void setNegativeInfinitySymbol (NSString string) |
569 { | 588 { |
570 OS.objc_msgSend(this.id, OS.sel_setNegativeInfinitySymbol_1, string !is null ? string.id : null); | 589 OS.objc_msgSend(this.id_, OS.sel_setNegativeInfinitySymbol_1, string !is null ? string.id_ : null); |
571 } | 590 } |
572 | 591 |
573 public void setNegativePrefix (NSString string) | 592 public void setNegativePrefix (NSString string) |
574 { | 593 { |
575 OS.objc_msgSend(this.id, OS.sel_setNegativePrefix_1, string !is null ? string.id : null); | 594 OS.objc_msgSend(this.id_, OS.sel_setNegativePrefix_1, string !is null ? string.id_ : null); |
576 } | 595 } |
577 | 596 |
578 public void setNegativeSuffix (NSString string) | 597 public void setNegativeSuffix (NSString string) |
579 { | 598 { |
580 OS.objc_msgSend(this.id, OS.sel_setNegativeSuffix_1, string !is null ? string.id : null); | 599 OS.objc_msgSend(this.id_, OS.sel_setNegativeSuffix_1, string !is null ? string.id_ : null); |
581 } | 600 } |
582 | 601 |
583 public void setNilSymbol (NSString string) | 602 public void setNilSymbol (NSString string) |
584 { | 603 { |
585 OS.objc_msgSend(this.id, OS.sel_setNilSymbol_1, string !is null ? string.id : null); | 604 OS.objc_msgSend(this.id_, OS.sel_setNilSymbol_1, string !is null ? string.id_ : null); |
586 } | 605 } |
587 | 606 |
588 public void setNotANumberSymbol (NSString string) | 607 public void setNotANumberSymbol (NSString string) |
589 { | 608 { |
590 OS.objc_msgSend(this.id, OS.sel_setNotANumberSymbol_1, string !is null ? string.id : null); | 609 OS.objc_msgSend(this.id_, OS.sel_setNotANumberSymbol_1, string !is null ? string.id_ : null); |
591 } | 610 } |
592 | 611 |
593 public void setNumberStyle (NSNumberFormatterStyle style) | 612 public void setNumberStyle (NSNumberFormatterStyle style) |
594 { | 613 { |
595 OS.objc_msgSend(this.id, OS.sel_setNumberStyle_1, style); | 614 OS.objc_msgSend(this.id_, OS.sel_setNumberStyle_1, style); |
596 } | 615 } |
597 | 616 |
598 public void setPaddingCharacter (NSString string) | 617 public void setPaddingCharacter (NSString string) |
599 { | 618 { |
600 OS.objc_msgSend(this.id, OS.sel_setPaddingCharacter_1, string !is null ? string.id : null); | 619 OS.objc_msgSend(this.id_, OS.sel_setPaddingCharacter_1, string !is null ? string.id_ : null); |
601 } | 620 } |
602 | 621 |
603 public void setPaddingPosition (NSNumberFormatterPadPosition position) | 622 public void setPaddingPosition (NSNumberFormatterPadPosition position) |
604 { | 623 { |
605 OS.objc_msgSend(this.id, OS.sel_setPaddingPosition_1, position); | 624 OS.objc_msgSend(this.id_, OS.sel_setPaddingPosition_1, position); |
606 } | 625 } |
607 | 626 |
608 public void setPartialStringValidationEnabled (bool b) | 627 public void setPartialStringValidationEnabled (bool b) |
609 { | 628 { |
610 OS.objc_msgSend(this.id, OS.sel_setPartialStringValidationEnabled_1, b); | 629 OS.objc_msgSend(this.id_, OS.sel_setPartialStringValidationEnabled_1, b); |
611 } | 630 } |
612 | 631 |
613 public void setPerMillSymbol (NSString string) | 632 public void setPerMillSymbol (NSString string) |
614 { | 633 { |
615 OS.objc_msgSend(this.id, OS.sel_setPerMillSymbol_1, string !is null ? string.id : null); | 634 OS.objc_msgSend(this.id_, OS.sel_setPerMillSymbol_1, string !is null ? string.id_ : null); |
616 } | 635 } |
617 | 636 |
618 public void setPercentSymbol (NSString string) | 637 public void setPercentSymbol (NSString string) |
619 { | 638 { |
620 OS.objc_msgSend(this.id, OS.sel_setPercentSymbol_1, string !is null ? string.id : null); | 639 OS.objc_msgSend(this.id_, OS.sel_setPercentSymbol_1, string !is null ? string.id_ : null); |
621 } | 640 } |
622 | 641 |
623 public void setPlusSign (NSString string) | 642 public void setPlusSign (NSString string) |
624 { | 643 { |
625 OS.objc_msgSend(this.id, OS.sel_setPlusSign_1, string !is null ? string.id : null); | 644 OS.objc_msgSend(this.id_, OS.sel_setPlusSign_1, string !is null ? string.id_ : null); |
626 } | 645 } |
627 | 646 |
628 public void setPositiveFormat (NSString format) | 647 public void setPositiveFormat (NSString format) |
629 { | 648 { |
630 OS.objc_msgSend(this.id, OS.sel_setPositiveFormat_1, format !is null ? format.id : null); | 649 OS.objc_msgSend(this.id_, OS.sel_setPositiveFormat_1, format !is null ? format.id_ : null); |
631 } | 650 } |
632 | 651 |
633 public void setPositiveInfinitySymbol (NSString string) | 652 public void setPositiveInfinitySymbol (NSString string) |
634 { | 653 { |
635 OS.objc_msgSend(this.id, OS.sel_setPositiveInfinitySymbol_1, string !is null ? string.id : null); | 654 OS.objc_msgSend(this.id_, OS.sel_setPositiveInfinitySymbol_1, string !is null ? string.id_ : null); |
636 } | 655 } |
637 | 656 |
638 public void setPositivePrefix (NSString string) | 657 public void setPositivePrefix (NSString string) |
639 { | 658 { |
640 OS.objc_msgSend(this.id, OS.sel_setPositivePrefix_1, string !is null ? string.id : null); | 659 OS.objc_msgSend(this.id_, OS.sel_setPositivePrefix_1, string !is null ? string.id_ : null); |
641 } | 660 } |
642 | 661 |
643 public void setPositiveSuffix (NSString string) | 662 public void setPositiveSuffix (NSString string) |
644 { | 663 { |
645 OS.objc_msgSend(this.id, OS.sel_setPositiveSuffix_1, string !is null ? string.id : null); | 664 OS.objc_msgSend(this.id_, OS.sel_setPositiveSuffix_1, string !is null ? string.id_ : null); |
646 } | 665 } |
647 | 666 |
648 public void setRoundingBehavior (NSDecimalNumberHandler newRoundingBehavior) | 667 public void setRoundingBehavior (NSDecimalNumberHandler newRoundingBehavior) |
649 { | 668 { |
650 OS.objc_msgSend(this.id, OS.sel_setRoundingBehavior_1, newRoundingBehavior !is null ? newRoundingBehavior.id : null); | 669 OS.objc_msgSend(this.id_, OS.sel_setRoundingBehavior_1, newRoundingBehavior !is null ? newRoundingBehavior.id_ : null); |
651 } | 670 } |
652 | 671 |
653 public void setRoundingIncrement (NSNumber number) | 672 public void setRoundingIncrement (NSNumber number) |
654 { | 673 { |
655 OS.objc_msgSend(this.id, OS.sel_setRoundingIncrement_1, number !is null ? number.id : null); | 674 OS.objc_msgSend(this.id_, OS.sel_setRoundingIncrement_1, number !is null ? number.id_ : null); |
656 } | 675 } |
657 | 676 |
658 public void setRoundingMode (NSNumberFormatterRoundingMode mode) | 677 public void setRoundingMode (NSNumberFormatterRoundingMode mode) |
659 { | 678 { |
660 OS.objc_msgSend(this.id, OS.sel_setRoundingMode_1, mode); | 679 OS.objc_msgSend(this.id_, OS.sel_setRoundingMode_1, mode); |
661 } | 680 } |
662 | 681 |
663 public void setSecondaryGroupingSize (NSUInteger number) | 682 public void setSecondaryGroupingSize (NSUInteger number) |
664 { | 683 { |
665 OS.objc_msgSend(this.id, OS.sel_setSecondaryGroupingSize_1, number); | 684 OS.objc_msgSend(this.id_, OS.sel_setSecondaryGroupingSize_1, number); |
666 } | 685 } |
667 | 686 |
668 public void setTextAttributesForNegativeInfinity (NSDictionary newAttributes) | 687 public void setTextAttributesForNegativeInfinity (NSDictionary newAttributes) |
669 { | 688 { |
670 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForNegativeInfinity_1, newAttributes !is null ? newAttributes.id : null); | 689 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForNegativeInfinity_1, newAttributes !is null ? newAttributes.id_ : null); |
671 } | 690 } |
672 | 691 |
673 public void setTextAttributesForNegativeValues (NSDictionary newAttributes) | 692 public void setTextAttributesForNegativeValues (NSDictionary newAttributes) |
674 { | 693 { |
675 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForNegativeValues_1, newAttributes !is null ? newAttributes.id : null); | 694 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForNegativeValues_1, newAttributes !is null ? newAttributes.id_ : null); |
676 } | 695 } |
677 | 696 |
678 public void setTextAttributesForNil (NSDictionary newAttributes) | 697 public void setTextAttributesForNil (NSDictionary newAttributes) |
679 { | 698 { |
680 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForNil_1, newAttributes !is null ? newAttributes.id : null); | 699 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForNil_1, newAttributes !is null ? newAttributes.id_ : null); |
681 } | 700 } |
682 | 701 |
683 public void setTextAttributesForNotANumber (NSDictionary newAttributes) | 702 public void setTextAttributesForNotANumber (NSDictionary newAttributes) |
684 { | 703 { |
685 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForNotANumber_1, newAttributes !is null ? newAttributes.id : null); | 704 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForNotANumber_1, newAttributes !is null ? newAttributes.id_ : null); |
686 } | 705 } |
687 | 706 |
688 public void setTextAttributesForPositiveInfinity (NSDictionary newAttributes) | 707 public void setTextAttributesForPositiveInfinity (NSDictionary newAttributes) |
689 { | 708 { |
690 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForPositiveInfinity_1, newAttributes !is null ? newAttributes.id : null); | 709 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForPositiveInfinity_1, newAttributes !is null ? newAttributes.id_ : null); |
691 } | 710 } |
692 | 711 |
693 public void setTextAttributesForPositiveValues (NSDictionary newAttributes) | 712 public void setTextAttributesForPositiveValues (NSDictionary newAttributes) |
694 { | 713 { |
695 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForPositiveValues_1, newAttributes !is null ? newAttributes.id : null); | 714 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForPositiveValues_1, newAttributes !is null ? newAttributes.id_ : null); |
696 } | 715 } |
697 | 716 |
698 public void setTextAttributesForZero (NSDictionary newAttributes) | 717 public void setTextAttributesForZero (NSDictionary newAttributes) |
699 { | 718 { |
700 OS.objc_msgSend(this.id, OS.sel_setTextAttributesForZero_1, newAttributes !is null ? newAttributes.id : null); | 719 OS.objc_msgSend(this.id_, OS.sel_setTextAttributesForZero_1, newAttributes !is null ? newAttributes.id_ : null); |
701 } | 720 } |
702 | 721 |
703 public void setThousandSeparator (NSString newSeparator) | 722 public void setThousandSeparator (NSString newSeparator) |
704 { | 723 { |
705 OS.objc_msgSend(this.id, OS.sel_setThousandSeparator_1, newSeparator !is null ? newSeparator.id : null); | 724 OS.objc_msgSend(this.id_, OS.sel_setThousandSeparator_1, newSeparator !is null ? newSeparator.id_ : null); |
706 } | 725 } |
707 | 726 |
708 public void setUsesGroupingSeparator (bool b) | 727 public void setUsesGroupingSeparator (bool b) |
709 { | 728 { |
710 OS.objc_msgSend(this.id, OS.sel_setUsesGroupingSeparator_1, b); | 729 OS.objc_msgSend(this.id_, OS.sel_setUsesGroupingSeparator_1, b); |
711 } | 730 } |
712 | 731 |
713 public void setUsesSignificantDigits (bool b) | 732 public void setUsesSignificantDigits (bool b) |
714 { | 733 { |
715 OS.objc_msgSend(this.id, OS.sel_setUsesSignificantDigits_1, b); | 734 OS.objc_msgSend(this.id_, OS.sel_setUsesSignificantDigits_1, b); |
716 } | 735 } |
717 | 736 |
718 public void setZeroSymbol (NSString string) | 737 public void setZeroSymbol (NSString string) |
719 { | 738 { |
720 OS.objc_msgSend(this.id, OS.sel_setZeroSymbol_1, string !is null ? string.id : null); | 739 OS.objc_msgSend(this.id_, OS.sel_setZeroSymbol_1, string !is null ? string.id_ : null); |
721 } | 740 } |
722 | 741 |
723 public NSString stringFromNumber (NSNumber number) | 742 public NSString stringFromNumber (NSNumber number) |
724 { | 743 { |
725 objc.id result = OS.objc_msgSend(this.id, OS.sel_stringFromNumber_1, number !is null ? number.id : null); | 744 objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringFromNumber_1, number !is null ? number.id_ : null); |
726 return result !is null ? new NSString(result) : null; | 745 return result !is null ? new NSString(result) : null; |
727 } | 746 } |
728 | 747 |
729 public NSDictionary textAttributesForNegativeInfinity () | 748 public NSDictionary textAttributesForNegativeInfinity () |
730 { | 749 { |
731 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForNegativeInfinity); | 750 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForNegativeInfinity); |
732 return result !is null ? new NSDictionary(result) : null; | 751 return result !is null ? new NSDictionary(result) : null; |
733 } | 752 } |
734 | 753 |
735 public NSDictionary textAttributesForNegativeValues () | 754 public NSDictionary textAttributesForNegativeValues () |
736 { | 755 { |
737 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForNegativeValues); | 756 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForNegativeValues); |
738 return result !is null ? new NSDictionary(result) : null; | 757 return result !is null ? new NSDictionary(result) : null; |
739 } | 758 } |
740 | 759 |
741 public NSDictionary textAttributesForNil () | 760 public NSDictionary textAttributesForNil () |
742 { | 761 { |
743 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForNil); | 762 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForNil); |
744 return result !is null ? new NSDictionary(result) : null; | 763 return result !is null ? new NSDictionary(result) : null; |
745 } | 764 } |
746 | 765 |
747 public NSDictionary textAttributesForNotANumber () | 766 public NSDictionary textAttributesForNotANumber () |
748 { | 767 { |
749 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForNotANumber); | 768 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForNotANumber); |
750 return result !is null ? new NSDictionary(result) : null; | 769 return result !is null ? new NSDictionary(result) : null; |
751 } | 770 } |
752 | 771 |
753 public NSDictionary textAttributesForPositiveInfinity () | 772 public NSDictionary textAttributesForPositiveInfinity () |
754 { | 773 { |
755 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForPositiveInfinity); | 774 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForPositiveInfinity); |
756 return result !is null ? new NSDictionary(result) : null; | 775 return result !is null ? new NSDictionary(result) : null; |
757 } | 776 } |
758 | 777 |
759 public NSDictionary textAttributesForPositiveValues () | 778 public NSDictionary textAttributesForPositiveValues () |
760 { | 779 { |
761 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForPositiveValues); | 780 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForPositiveValues); |
762 return result !is null ? new NSDictionary(result) : null; | 781 return result !is null ? new NSDictionary(result) : null; |
763 } | 782 } |
764 | 783 |
765 public NSDictionary textAttributesForZero () | 784 public NSDictionary textAttributesForZero () |
766 { | 785 { |
767 objc.id result = OS.objc_msgSend(this.id, OS.sel_textAttributesForZero); | 786 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textAttributesForZero); |
768 return result !is null ? new NSDictionary(result) : null; | 787 return result !is null ? new NSDictionary(result) : null; |
769 } | 788 } |
770 | 789 |
771 public NSString thousandSeparator () | 790 public NSString thousandSeparator () |
772 { | 791 { |
773 objc.id result = OS.objc_msgSend(this.id, OS.sel_thousandSeparator); | 792 objc.id result = OS.objc_msgSend(this.id_, OS.sel_thousandSeparator); |
774 return result !is null ? new NSString(result) : null; | 793 return result !is null ? new NSString(result) : null; |
775 } | 794 } |
776 | 795 |
777 public bool usesGroupingSeparator () | 796 public bool usesGroupingSeparator () |
778 { | 797 { |
779 return OS.objc_msgSend(this.id, OS.sel_usesGroupingSeparator) !is null; | 798 return OS.objc_msgSend(this.id_, OS.sel_usesGroupingSeparator) !is null; |
780 } | 799 } |
781 | 800 |
782 public bool usesSignificantDigits () | 801 public bool usesSignificantDigits () |
783 { | 802 { |
784 return OS.objc_msgSend(this.id, OS.sel_usesSignificantDigits) !is null; | 803 return OS.objc_msgSend(this.id_, OS.sel_usesSignificantDigits) !is null; |
785 } | 804 } |
786 | 805 |
787 public NSString zeroSymbol () | 806 public NSString zeroSymbol () |
788 { | 807 { |
789 objc.id result = OS.objc_msgSend(this.id, OS.sel_zeroSymbol); | 808 objc.id result = OS.objc_msgSend(this.id_, OS.sel_zeroSymbol); |
790 return result !is null ? new NSString(result) : null; | 809 return result !is null ? new NSString(result) : null; |
791 } | 810 } |
792 | 811 |
793 } | 812 } |