Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSText.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 |
---|---|
74 return cast(objc.Class) OS.objc_msgSend(OS.class_NSText, OS.sel_class); | 74 return cast(objc.Class) OS.objc_msgSend(OS.class_NSText, OS.sel_class); |
75 } | 75 } |
76 | 76 |
77 public NSData RTFDFromRange (NSRange range) | 77 public NSData RTFDFromRange (NSRange range) |
78 { | 78 { |
79 objc.id result = OS.objc_msgSend(this.id, OS.sel_RTFDFromRange_1, range); | 79 objc.id result = OS.objc_msgSend(this.id_, OS.sel_RTFDFromRange_1, range); |
80 return result !is null ? new NSData(result) : null; | 80 return result !is null ? new NSData(result) : null; |
81 } | 81 } |
82 | 82 |
83 public NSData RTFFromRange (NSRange range) | 83 public NSData RTFFromRange (NSRange range) |
84 { | 84 { |
85 objc.id result = OS.objc_msgSend(this.id, OS.sel_RTFFromRange_1, range); | 85 objc.id result = OS.objc_msgSend(this.id_, OS.sel_RTFFromRange_1, range); |
86 return result !is null ? new NSData(result) : null; | 86 return result !is null ? new NSData(result) : null; |
87 } | 87 } |
88 | 88 |
89 public void alignCenter (id sender) | 89 public void alignCenter (id sender) |
90 { | 90 { |
91 OS.objc_msgSend(this.id, OS.sel_alignCenter_1, sender !is null ? sender.id : null); | 91 OS.objc_msgSend(this.id_, OS.sel_alignCenter_1, sender !is null ? sender.id_ : null); |
92 } | 92 } |
93 | 93 |
94 public void alignLeft (id sender) | 94 public void alignLeft (id sender) |
95 { | 95 { |
96 OS.objc_msgSend(this.id, OS.sel_alignLeft_1, sender !is null ? sender.id : null); | 96 OS.objc_msgSend(this.id_, OS.sel_alignLeft_1, sender !is null ? sender.id_ : null); |
97 } | 97 } |
98 | 98 |
99 public void alignRight (id sender) | 99 public void alignRight (id sender) |
100 { | 100 { |
101 OS.objc_msgSend(this.id, OS.sel_alignRight_1, sender !is null ? sender.id : null); | 101 OS.objc_msgSend(this.id_, OS.sel_alignRight_1, sender !is null ? sender.id_ : null); |
102 } | 102 } |
103 | 103 |
104 public NSTextAlignment alignment () | 104 public NSTextAlignment alignment () |
105 { | 105 { |
106 return cast(NSTextAlignment) OS.objc_msgSend(this.id, OS.sel_alignment); | 106 return cast(NSTextAlignment) OS.objc_msgSend(this.id_, OS.sel_alignment); |
107 } | 107 } |
108 | 108 |
109 public NSColor backgroundColor () | 109 public NSColor backgroundColor () |
110 { | 110 { |
111 objc.id result = OS.objc_msgSend(this.id, OS.sel_backgroundColor); | 111 objc.id result = OS.objc_msgSend(this.id_, OS.sel_backgroundColor); |
112 return result !is null ? new NSColor(result) : null; | 112 return result !is null ? new NSColor(result) : null; |
113 } | 113 } |
114 | 114 |
115 public NSWritingDirection baseWritingDirection () | 115 public NSWritingDirection baseWritingDirection () |
116 { | 116 { |
117 return cast(NSWritingDirection) OS.objc_msgSend(this.id, OS.sel_baseWritingDirection); | 117 return cast(NSWritingDirection) OS.objc_msgSend(this.id_, OS.sel_baseWritingDirection); |
118 } | 118 } |
119 | 119 |
120 public void changeFont (id sender) | 120 public void changeFont (id sender) |
121 { | 121 { |
122 OS.objc_msgSend(this.id, OS.sel_changeFont_1, sender !is null ? sender.id : null); | 122 OS.objc_msgSend(this.id_, OS.sel_changeFont_1, sender !is null ? sender.id_ : null); |
123 } | 123 } |
124 | 124 |
125 public void checkSpelling (id sender) | 125 public void checkSpelling (id sender) |
126 { | 126 { |
127 OS.objc_msgSend(this.id, OS.sel_checkSpelling_1, sender !is null ? sender.id : null); | 127 OS.objc_msgSend(this.id_, OS.sel_checkSpelling_1, sender !is null ? sender.id_ : null); |
128 } | 128 } |
129 | 129 |
130 public void copy (id sender) | 130 public void copy (id sender) |
131 { | 131 { |
132 OS.objc_msgSend(this.id, OS.sel_copy_1, sender !is null ? sender.id : null); | 132 OS.objc_msgSend(this.id_, OS.sel_copy_1, sender !is null ? sender.id_ : null); |
133 } | 133 } |
134 | 134 |
135 public void copyFont (id sender) | 135 public void copyFont (id sender) |
136 { | 136 { |
137 OS.objc_msgSend(this.id, OS.sel_copyFont_1, sender !is null ? sender.id : null); | 137 OS.objc_msgSend(this.id_, OS.sel_copyFont_1, sender !is null ? sender.id_ : null); |
138 } | 138 } |
139 | 139 |
140 public void copyRuler (id sender) | 140 public void copyRuler (id sender) |
141 { | 141 { |
142 OS.objc_msgSend(this.id, OS.sel_copyRuler_1, sender !is null ? sender.id : null); | 142 OS.objc_msgSend(this.id_, OS.sel_copyRuler_1, sender !is null ? sender.id_ : null); |
143 } | 143 } |
144 | 144 |
145 public void cut (id sender) | 145 public void cut (id sender) |
146 { | 146 { |
147 OS.objc_msgSend(this.id, OS.sel_cut_1, sender !is null ? sender.id : null); | 147 OS.objc_msgSend(this.id_, OS.sel_cut_1, sender !is null ? sender.id_ : null); |
148 } | 148 } |
149 | 149 |
150 public id delegatee () | 150 public id delegatee () |
151 { | 151 { |
152 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); | 152 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate); |
153 return result !is null ? new id(result) : null; | 153 return result !is null ? new id(result) : null; |
154 } | 154 } |
155 | 155 |
156 public void deletee (id sender) | 156 public void deletee (id sender) |
157 { | 157 { |
158 OS.objc_msgSend(this.id, OS.sel_delete_1, sender !is null ? sender.id : null); | 158 OS.objc_msgSend(this.id_, OS.sel_delete_1, sender !is null ? sender.id_ : null); |
159 } | 159 } |
160 | 160 |
161 public bool drawsBackground () | 161 public bool drawsBackground () |
162 { | 162 { |
163 return OS.objc_msgSend(this.id, OS.sel_drawsBackground) !is null; | 163 return OS.objc_msgSend(this.id_, OS.sel_drawsBackground) !is null; |
164 } | 164 } |
165 | 165 |
166 public NSFont font () | 166 public NSFont font () |
167 { | 167 { |
168 objc.id result = OS.objc_msgSend(this.id, OS.sel_font); | 168 objc.id result = OS.objc_msgSend(this.id_, OS.sel_font); |
169 return result !is null ? new NSFont(result) : null; | 169 return result !is null ? new NSFont(result) : null; |
170 } | 170 } |
171 | 171 |
172 public bool importsGraphics () | 172 public bool importsGraphics () |
173 { | 173 { |
174 return OS.objc_msgSend(this.id, OS.sel_importsGraphics) !is null; | 174 return OS.objc_msgSend(this.id_, OS.sel_importsGraphics) !is null; |
175 } | 175 } |
176 | 176 |
177 public bool isEditable () | 177 public bool isEditable () |
178 { | 178 { |
179 return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; | 179 return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null; |
180 } | 180 } |
181 | 181 |
182 public bool isFieldEditor () | 182 public bool isFieldEditor () |
183 { | 183 { |
184 return OS.objc_msgSend(this.id, OS.sel_isFieldEditor) !is null; | 184 return OS.objc_msgSend(this.id_, OS.sel_isFieldEditor) !is null; |
185 } | 185 } |
186 | 186 |
187 public bool isHorizontallyResizable () | 187 public bool isHorizontallyResizable () |
188 { | 188 { |
189 return OS.objc_msgSend(this.id, OS.sel_isHorizontallyResizable) !is null; | 189 return OS.objc_msgSend(this.id_, OS.sel_isHorizontallyResizable) !is null; |
190 } | 190 } |
191 | 191 |
192 public bool isRichText () | 192 public bool isRichText () |
193 { | 193 { |
194 return OS.objc_msgSend(this.id, OS.sel_isRichText) !is null; | 194 return OS.objc_msgSend(this.id_, OS.sel_isRichText) !is null; |
195 } | 195 } |
196 | 196 |
197 public bool isRulerVisible () | 197 public bool isRulerVisible () |
198 { | 198 { |
199 return OS.objc_msgSend(this.id, OS.sel_isRulerVisible) !is null; | 199 return OS.objc_msgSend(this.id_, OS.sel_isRulerVisible) !is null; |
200 } | 200 } |
201 | 201 |
202 public bool isSelectable () | 202 public bool isSelectable () |
203 { | 203 { |
204 return OS.objc_msgSend(this.id, OS.sel_isSelectable) !is null; | 204 return OS.objc_msgSend(this.id_, OS.sel_isSelectable) !is null; |
205 } | 205 } |
206 | 206 |
207 public bool isVerticallyResizable () | 207 public bool isVerticallyResizable () |
208 { | 208 { |
209 return OS.objc_msgSend(this.id, OS.sel_isVerticallyResizable) !is null; | 209 return OS.objc_msgSend(this.id_, OS.sel_isVerticallyResizable) !is null; |
210 } | 210 } |
211 | 211 |
212 public NSSize maxSize () | 212 public NSSize maxSize () |
213 { | 213 { |
214 NSSize result; | 214 NSSize result; |
215 OS.objc_msgSend_stret(result, this.id, OS.sel_maxSize); | 215 OS.objc_msgSend_stret(&result, this.id_, OS.sel_maxSize); |
216 return result; | 216 return result; |
217 } | 217 } |
218 | 218 |
219 public NSSize minSize () | 219 public NSSize minSize () |
220 { | 220 { |
221 NSSize result; | 221 NSSize result; |
222 OS.objc_msgSend_stret(result, this.id, OS.sel_minSize); | 222 OS.objc_msgSend_stret(&result, this.id_, OS.sel_minSize); |
223 return result; | 223 return result; |
224 } | 224 } |
225 | 225 |
226 public void paste (id sender) | 226 public void paste (id sender) |
227 { | 227 { |
228 OS.objc_msgSend(this.id, OS.sel_paste_1, sender !is null ? sender.id : null); | 228 OS.objc_msgSend(this.id_, OS.sel_paste_1, sender !is null ? sender.id_ : null); |
229 } | 229 } |
230 | 230 |
231 public void pasteFont (id sender) | 231 public void pasteFont (id sender) |
232 { | 232 { |
233 OS.objc_msgSend(this.id, OS.sel_pasteFont_1, sender !is null ? sender.id : null); | 233 OS.objc_msgSend(this.id_, OS.sel_pasteFont_1, sender !is null ? sender.id_ : null); |
234 } | 234 } |
235 | 235 |
236 public void pasteRuler (id sender) | 236 public void pasteRuler (id sender) |
237 { | 237 { |
238 OS.objc_msgSend(this.id, OS.sel_pasteRuler_1, sender !is null ? sender.id : null); | 238 OS.objc_msgSend(this.id_, OS.sel_pasteRuler_1, sender !is null ? sender.id_ : null); |
239 } | 239 } |
240 | 240 |
241 public bool readRTFDFromFile (NSString path) | 241 public bool readRTFDFromFile (NSString path) |
242 { | 242 { |
243 return OS.objc_msgSend(this.id, OS.sel_readRTFDFromFile_1, path !is null ? path.id : null) !is null; | 243 return OS.objc_msgSend(this.id_, OS.sel_readRTFDFromFile_1, path !is null ? path.id_ : null) !is null; |
244 } | 244 } |
245 | 245 |
246 public void replaceCharactersInRange_withRTF_ (NSRange range, NSData rtfData) | 246 public void replaceCharactersInRange_withRTF_ (NSRange range, NSData rtfData) |
247 { | 247 { |
248 OS.objc_msgSend(this.id, OS.sel_replaceCharactersInRange_1withRTF_1, range, rtfData !is null ? rtfData.id : null); | 248 OS.objc_msgSend(this.id_, OS.sel_replaceCharactersInRange_1withRTF_1, range, rtfData !is null ? rtfData.id_ : null); |
249 } | 249 } |
250 | 250 |
251 public void replaceCharactersInRange_withRTFD_ (NSRange range, NSData rtfdData) | 251 public void replaceCharactersInRange_withRTFD_ (NSRange range, NSData rtfdData) |
252 { | 252 { |
253 OS.objc_msgSend(this.id, OS.sel_replaceCharactersInRange_1withRTFD_1, range, rtfdData !is null ? rtfdData.id : null); | 253 OS.objc_msgSend(this.id_, OS.sel_replaceCharactersInRange_1withRTFD_1, range, rtfdData !is null ? rtfdData.id_ : null); |
254 } | 254 } |
255 | 255 |
256 public void replaceCharactersInRange_withString_ (NSRange range, NSString aString) | 256 public void replaceCharactersInRange_withString_ (NSRange range, NSString aString) |
257 { | 257 { |
258 OS.objc_msgSend(this.id, OS.sel_replaceCharactersInRange_1withString_1, range, aString !is null ? aString.id : null); | 258 OS.objc_msgSend(this.id_, OS.sel_replaceCharactersInRange_1withString_1, range, aString !is null ? aString.id_ : null); |
259 } | 259 } |
260 | 260 |
261 public void scrollRangeToVisible (NSRange range) | 261 public void scrollRangeToVisible (NSRange range) |
262 { | 262 { |
263 OS.objc_msgSend(this.id, OS.sel_scrollRangeToVisible_1, range); | 263 OS.objc_msgSend(this.id_, OS.sel_scrollRangeToVisible_1, range); |
264 } | 264 } |
265 | 265 |
266 public void selectAll (id sender) | 266 public void selectAll (id sender) |
267 { | 267 { |
268 OS.objc_msgSend(this.id, OS.sel_selectAll_1, sender !is null ? sender.id : null); | 268 OS.objc_msgSend(this.id_, OS.sel_selectAll_1, sender !is null ? sender.id_ : null); |
269 } | 269 } |
270 | 270 |
271 public NSRange selectedRange () | 271 public NSRange selectedRange () |
272 { | 272 { |
273 NSRange result; | 273 NSRange result; |
274 OS.objc_msgSend_struct(result, this.id, OS.sel_selectedRange); | 274 OS.objc_msgSend_struct(&result, this.id_, OS.sel_selectedRange); |
275 return result; | 275 return result; |
276 } | 276 } |
277 | 277 |
278 public void setAlignment (NSTextAlignment mode) | 278 public void setAlignment (NSTextAlignment mode) |
279 { | 279 { |
280 OS.objc_msgSend(this.id, OS.sel_setAlignment_1, mode); | 280 OS.objc_msgSend(this.id_, OS.sel_setAlignment_1, mode); |
281 } | 281 } |
282 | 282 |
283 public void setBackgroundColor (NSColor color) | 283 public void setBackgroundColor (NSColor color) |
284 { | 284 { |
285 OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color !is null ? color.id : null); | 285 OS.objc_msgSend(this.id_, OS.sel_setBackgroundColor_1, color !is null ? color.id_ : null); |
286 } | 286 } |
287 | 287 |
288 public void setBaseWritingDirection (NSWritingDirection writingDirection) | 288 public void setBaseWritingDirection (NSWritingDirection writingDirection) |
289 { | 289 { |
290 OS.objc_msgSend(this.id, OS.sel_setBaseWritingDirection_1, writingDirection); | 290 OS.objc_msgSend(this.id_, OS.sel_setBaseWritingDirection_1, writingDirection); |
291 } | 291 } |
292 | 292 |
293 public void setDelegate (id anObject) | 293 public void setDelegate (id anObject) |
294 { | 294 { |
295 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject !is null ? anObject.id : null); | 295 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, anObject !is null ? anObject.id_ : null); |
296 } | 296 } |
297 | 297 |
298 public void setDrawsBackground (bool flag) | 298 public void setDrawsBackground (bool flag) |
299 { | 299 { |
300 OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag); | 300 OS.objc_msgSend(this.id_, OS.sel_setDrawsBackground_1, flag); |
301 } | 301 } |
302 | 302 |
303 public void setEditable (bool flag) | 303 public void setEditable (bool flag) |
304 { | 304 { |
305 OS.objc_msgSend(this.id, OS.sel_setEditable_1, flag); | 305 OS.objc_msgSend(this.id_, OS.sel_setEditable_1, flag); |
306 } | 306 } |
307 | 307 |
308 public void setFieldEditor (bool flag) | 308 public void setFieldEditor (bool flag) |
309 { | 309 { |
310 OS.objc_msgSend(this.id, OS.sel_setFieldEditor_1, flag); | 310 OS.objc_msgSend(this.id_, OS.sel_setFieldEditor_1, flag); |
311 } | 311 } |
312 | 312 |
313 public void setFont_ (NSFont obj) | 313 public void setFont_ (NSFont obj) |
314 { | 314 { |
315 OS.objc_msgSend(this.id, OS.sel_setFont_1, obj !is null ? obj.id : null); | 315 OS.objc_msgSend(this.id_, OS.sel_setFont_1, obj !is null ? obj.id_ : null); |
316 } | 316 } |
317 | 317 |
318 public void setFont_range_ (NSFont font, NSRange range) | 318 public void setFont_range_ (NSFont font, NSRange range) |
319 { | 319 { |
320 OS.objc_msgSend(this.id, OS.sel_setFont_1range_1, font !is null ? font.id : null, range); | 320 OS.objc_msgSend(this.id_, OS.sel_setFont_1range_1, font !is null ? font.id_ : null, range); |
321 } | 321 } |
322 | 322 |
323 public void setHorizontallyResizable (bool flag) | 323 public void setHorizontallyResizable (bool flag) |
324 { | 324 { |
325 OS.objc_msgSend(this.id, OS.sel_setHorizontallyResizable_1, flag); | 325 OS.objc_msgSend(this.id_, OS.sel_setHorizontallyResizable_1, flag); |
326 } | 326 } |
327 | 327 |
328 public void setImportsGraphics (bool flag) | 328 public void setImportsGraphics (bool flag) |
329 { | 329 { |
330 OS.objc_msgSend(this.id, OS.sel_setImportsGraphics_1, flag); | 330 OS.objc_msgSend(this.id_, OS.sel_setImportsGraphics_1, flag); |
331 } | 331 } |
332 | 332 |
333 public void setMaxSize (NSSize newMaxSize) | 333 public void setMaxSize (NSSize newMaxSize) |
334 { | 334 { |
335 OS.objc_msgSend(this.id, OS.sel_setMaxSize_1, newMaxSize); | 335 OS.objc_msgSend(this.id_, OS.sel_setMaxSize_1, newMaxSize); |
336 } | 336 } |
337 | 337 |
338 public void setMinSize (NSSize newMinSize) | 338 public void setMinSize (NSSize newMinSize) |
339 { | 339 { |
340 OS.objc_msgSend(this.id, OS.sel_setMinSize_1, newMinSize); | 340 OS.objc_msgSend(this.id_, OS.sel_setMinSize_1, newMinSize); |
341 } | 341 } |
342 | 342 |
343 public void setRichText (bool flag) | 343 public void setRichText (bool flag) |
344 { | 344 { |
345 OS.objc_msgSend(this.id, OS.sel_setRichText_1, flag); | 345 OS.objc_msgSend(this.id_, OS.sel_setRichText_1, flag); |
346 } | 346 } |
347 | 347 |
348 public void setSelectable (bool flag) | 348 public void setSelectable (bool flag) |
349 { | 349 { |
350 OS.objc_msgSend(this.id, OS.sel_setSelectable_1, flag); | 350 OS.objc_msgSend(this.id_, OS.sel_setSelectable_1, flag); |
351 } | 351 } |
352 | 352 |
353 public void setSelectedRange (NSRange range) | 353 public void setSelectedRange (NSRange range) |
354 { | 354 { |
355 OS.objc_msgSend(this.id, OS.sel_setSelectedRange_1, range); | 355 OS.objc_msgSend(this.id_, OS.sel_setSelectedRange_1, range); |
356 } | 356 } |
357 | 357 |
358 public void setString (NSString string) | 358 public void setString (NSString string) |
359 { | 359 { |
360 OS.objc_msgSend(this.id, OS.sel_setString_1, string !is null ? string.id : null); | 360 OS.objc_msgSend(this.id_, OS.sel_setString_1, string !is null ? string.id_ : null); |
361 } | 361 } |
362 | 362 |
363 public void setTextColor_ (NSColor color) | 363 public void setTextColor_ (NSColor color) |
364 { | 364 { |
365 OS.objc_msgSend(this.id, OS.sel_setTextColor_1, color !is null ? color.id : null); | 365 OS.objc_msgSend(this.id_, OS.sel_setTextColor_1, color !is null ? color.id_ : null); |
366 } | 366 } |
367 | 367 |
368 public void setTextColor_range_ (NSColor color, NSRange range) | 368 public void setTextColor_range_ (NSColor color, NSRange range) |
369 { | 369 { |
370 OS.objc_msgSend(this.id, OS.sel_setTextColor_1range_1, color !is null ? color.id : null, range); | 370 OS.objc_msgSend(this.id_, OS.sel_setTextColor_1range_1, color !is null ? color.id_ : null, range); |
371 } | 371 } |
372 | 372 |
373 public void setUsesFontPanel (bool flag) | 373 public void setUsesFontPanel (bool flag) |
374 { | 374 { |
375 OS.objc_msgSend(this.id, OS.sel_setUsesFontPanel_1, flag); | 375 OS.objc_msgSend(this.id_, OS.sel_setUsesFontPanel_1, flag); |
376 } | 376 } |
377 | 377 |
378 public void setVerticallyResizable (bool flag) | 378 public void setVerticallyResizable (bool flag) |
379 { | 379 { |
380 OS.objc_msgSend(this.id, OS.sel_setVerticallyResizable_1, flag); | 380 OS.objc_msgSend(this.id_, OS.sel_setVerticallyResizable_1, flag); |
381 } | 381 } |
382 | 382 |
383 public void showGuessPanel (id sender) | 383 public void showGuessPanel (id sender) |
384 { | 384 { |
385 OS.objc_msgSend(this.id, OS.sel_showGuessPanel_1, sender !is null ? sender.id : null); | 385 OS.objc_msgSend(this.id_, OS.sel_showGuessPanel_1, sender !is null ? sender.id_ : null); |
386 } | 386 } |
387 | 387 |
388 public void sizeToFit () | 388 public void sizeToFit () |
389 { | 389 { |
390 OS.objc_msgSend(this.id, OS.sel_sizeToFit); | 390 OS.objc_msgSend(this.id_, OS.sel_sizeToFit); |
391 } | 391 } |
392 | 392 |
393 public NSString string () | 393 public NSString string () |
394 { | 394 { |
395 objc.id result = OS.objc_msgSend(this.id, OS.sel_string); | 395 objc.id result = OS.objc_msgSend(this.id_, OS.sel_string); |
396 return result !is null ? new NSString(result) : null; | 396 return result !is null ? new NSString(result) : null; |
397 } | 397 } |
398 | 398 |
399 public void subscript (id sender) | 399 public void subscript (id sender) |
400 { | 400 { |
401 OS.objc_msgSend(this.id, OS.sel_subscript_1, sender !is null ? sender.id : null); | 401 OS.objc_msgSend(this.id_, OS.sel_subscript_1, sender !is null ? sender.id_ : null); |
402 } | 402 } |
403 | 403 |
404 public void superscript (id sender) | 404 public void superscript (id sender) |
405 { | 405 { |
406 OS.objc_msgSend(this.id, OS.sel_superscript_1, sender !is null ? sender.id : null); | 406 OS.objc_msgSend(this.id_, OS.sel_superscript_1, sender !is null ? sender.id_ : null); |
407 } | 407 } |
408 | 408 |
409 public NSColor textColor () | 409 public NSColor textColor () |
410 { | 410 { |
411 objc.id result = OS.objc_msgSend(this.id, OS.sel_textColor); | 411 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textColor); |
412 return result !is null ? new NSColor(result) : null; | 412 return result !is null ? new NSColor(result) : null; |
413 } | 413 } |
414 | 414 |
415 public void toggleRuler (id sender) | 415 public void toggleRuler (id sender) |
416 { | 416 { |
417 OS.objc_msgSend(this.id, OS.sel_toggleRuler_1, sender !is null ? sender.id : null); | 417 OS.objc_msgSend(this.id_, OS.sel_toggleRuler_1, sender !is null ? sender.id_ : null); |
418 } | 418 } |
419 | 419 |
420 public void underline (id sender) | 420 public void underline (id sender) |
421 { | 421 { |
422 OS.objc_msgSend(this.id, OS.sel_underline_1, sender !is null ? sender.id : null); | 422 OS.objc_msgSend(this.id_, OS.sel_underline_1, sender !is null ? sender.id_ : null); |
423 } | 423 } |
424 | 424 |
425 public void unscript (id sender) | 425 public void unscript (id sender) |
426 { | 426 { |
427 OS.objc_msgSend(this.id, OS.sel_unscript_1, sender !is null ? sender.id : null); | 427 OS.objc_msgSend(this.id_, OS.sel_unscript_1, sender !is null ? sender.id_ : null); |
428 } | 428 } |
429 | 429 |
430 public bool usesFontPanel () | 430 public bool usesFontPanel () |
431 { | 431 { |
432 return OS.objc_msgSend(this.id, OS.sel_usesFontPanel) !is null; | 432 return OS.objc_msgSend(this.id_, OS.sel_usesFontPanel) !is null; |
433 } | 433 } |
434 | 434 |
435 public bool writeRTFDToFile (NSString path, bool flag) | 435 public bool writeRTFDToFile (NSString path, bool flag) |
436 { | 436 { |
437 return OS.objc_msgSend(this.id, OS.sel_writeRTFDToFile_1atomically_1, path !is null ? path.id : null, flag) !is null; | 437 return OS.objc_msgSend(this.id_, OS.sel_writeRTFDToFile_1atomically_1, path !is null ? path.id_ : null, flag) !is null; |
438 } | 438 } |
439 | 439 |
440 } | 440 } |