comparison dwt/internal/cocoa/NSTextView.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
56 56
57 alias NSSelectionGranularity.NSSelectByCharacter NSSelectByCharacter; 57 alias NSSelectionGranularity.NSSelectByCharacter NSSelectByCharacter;
58 alias NSSelectionGranularity.NSSelectByWord NSSelectByWord; 58 alias NSSelectionGranularity.NSSelectByWord NSSelectByWord;
59 alias NSSelectionGranularity.NSSelectByParagraph NSSelectByParagraph; 59 alias NSSelectionGranularity.NSSelectByParagraph NSSelectByParagraph;
60 60
61 enum NSSelectionAffinity
62 {
63 NSSelectionAffinityUpstream = 0,
64 NSSelectionAffinityDownstream = 1
65 }
66
67 alias NSSelectionAffinity.NSSelectionAffinityUpstream NSSelectionAffinityUpstream;
68 alias NSSelectionAffinity.NSSelectionAffinityDownstream NSSelectionAffinityDownstream;
69
70 public class NSTextView : NSText 61 public class NSTextView : NSText
71 { 62 {
72 63
73 public this () 64 public this ()
74 { 65 {
80 super(id); 71 super(id);
81 } 72 }
82 73
83 public NSArray acceptableDragTypes () 74 public NSArray acceptableDragTypes ()
84 { 75 {
85 objc.id result = OS.objc_msgSend(this.id, OS.sel_acceptableDragTypes); 76 objc.id result = OS.objc_msgSend(this.id_, OS.sel_acceptableDragTypes);
86 return result !is null ? new NSArray(result) : null; 77 return result !is null ? new NSArray(result) : null;
87 } 78 }
88 79
89 public bool acceptsGlyphInfo () 80 public bool acceptsGlyphInfo ()
90 { 81 {
91 return OS.objc_msgSend(this.id, OS.sel_acceptsGlyphInfo) !is null; 82 return OS.objc_msgSend(this.id_, OS.sel_acceptsGlyphInfo) !is null;
92 } 83 }
93 84
94 public void alignJustified (id sender) 85 public void alignJustified (id sender)
95 { 86 {
96 OS.objc_msgSend(this.id, OS.sel_alignJustified_1, sender !is null ? sender.id : null); 87 OS.objc_msgSend(this.id_, OS.sel_alignJustified_1, sender !is null ? sender.id_ : null);
97 } 88 }
98 89
99 public NSArray allowedInputSourceLocales () 90 public NSArray allowedInputSourceLocales ()
100 { 91 {
101 objc.id result = OS.objc_msgSend(this.id, OS.sel_allowedInputSourceLocales); 92 objc.id result = OS.objc_msgSend(this.id_, OS.sel_allowedInputSourceLocales);
102 return result !is null ? new NSArray(result) : null; 93 return result !is null ? new NSArray(result) : null;
103 } 94 }
104 95
105 public bool allowsDocumentBackgroundColorChange () 96 public bool allowsDocumentBackgroundColorChange ()
106 { 97 {
107 return OS.objc_msgSend(this.id, OS.sel_allowsDocumentBackgroundColorChange) !is null; 98 return OS.objc_msgSend(this.id_, OS.sel_allowsDocumentBackgroundColorChange) !is null;
108 } 99 }
109 100
110 public bool allowsImageEditing () 101 public bool allowsImageEditing ()
111 { 102 {
112 return OS.objc_msgSend(this.id, OS.sel_allowsImageEditing) !is null; 103 return OS.objc_msgSend(this.id_, OS.sel_allowsImageEditing) !is null;
113 } 104 }
114 105
115 public bool allowsUndo () 106 public bool allowsUndo ()
116 { 107 {
117 return OS.objc_msgSend(this.id, OS.sel_allowsUndo) !is null; 108 return OS.objc_msgSend(this.id_, OS.sel_allowsUndo) !is null;
118 } 109 }
119 110
120 public NSColor backgroundColor () 111 public NSColor backgroundColor ()
121 { 112 {
122 objc.id result = OS.objc_msgSend(this.id, OS.sel_backgroundColor); 113 objc.id result = OS.objc_msgSend(this.id_, OS.sel_backgroundColor);
123 return result !is null ? new NSColor(result) : null; 114 return result !is null ? new NSColor(result) : null;
124 } 115 }
125 116
126 public void breakUndoCoalescing () 117 public void breakUndoCoalescing ()
127 { 118 {
128 OS.objc_msgSend(this.id, OS.sel_breakUndoCoalescing); 119 OS.objc_msgSend(this.id_, OS.sel_breakUndoCoalescing);
129 } 120 }
130 121
131 public void changeAttributes (id sender) 122 public void changeAttributes (id sender)
132 { 123 {
133 OS.objc_msgSend(this.id, OS.sel_changeAttributes_1, sender !is null ? sender.id : null); 124 OS.objc_msgSend(this.id_, OS.sel_changeAttributes_1, sender !is null ? sender.id_ : null);
134 } 125 }
135 126
136 public void changeColor (id sender) 127 public void changeColor (id sender)
137 { 128 {
138 OS.objc_msgSend(this.id, OS.sel_changeColor_1, sender !is null ? sender.id : null); 129 OS.objc_msgSend(this.id_, OS.sel_changeColor_1, sender !is null ? sender.id_ : null);
139 } 130 }
140 131
141 public void changeDocumentBackgroundColor (id sender) 132 public void changeDocumentBackgroundColor (id sender)
142 { 133 {
143 OS.objc_msgSend(this.id, OS.sel_changeDocumentBackgroundColor_1, sender !is null ? sender.id : null); 134 OS.objc_msgSend(this.id_, OS.sel_changeDocumentBackgroundColor_1, sender !is null ? sender.id_ : null);
144 } 135 }
145 136
146 public NSUInteger characterIndexForInsertionAtPoint (NSPoint point) 137 public NSUInteger characterIndexForInsertionAtPoint (NSPoint point)
147 { 138 {
148 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_characterIndexForInsertionAtPoint_1, point); 139 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_characterIndexForInsertionAtPoint_1, point);
149 } 140 }
150 141
151 public void cleanUpAfterDragOperation () 142 public void cleanUpAfterDragOperation ()
152 { 143 {
153 OS.objc_msgSend(this.id, OS.sel_cleanUpAfterDragOperation); 144 OS.objc_msgSend(this.id_, OS.sel_cleanUpAfterDragOperation);
154 } 145 }
155 146
156 public void clickedOnLink (id link, NSUInteger charIndex) 147 public void clickedOnLink (id link, NSUInteger charIndex)
157 { 148 {
158 OS.objc_msgSend(this.id, OS.sel_clickedOnLink_1atIndex_1, link !is null ? link.id : null, charIndex); 149 OS.objc_msgSend(this.id_, OS.sel_clickedOnLink_1atIndex_1, link !is null ? link.id_ : null, charIndex);
159 } 150 }
160 151
161 public void complete (id sender) 152 public void complete (id sender)
162 { 153 {
163 OS.objc_msgSend(this.id, OS.sel_complete_1, sender !is null ? sender.id : null); 154 OS.objc_msgSend(this.id_, OS.sel_complete_1, sender !is null ? sender.id_ : null);
164 } 155 }
165 156
166 public NSArray completionsForPartialWordRange (NSRange charRange, NSInteger* index) 157 public NSArray completionsForPartialWordRange (NSRange charRange, NSInteger* index)
167 { 158 {
168 objc.id result = OS.objc_msgSend(this.id, OS.sel_completionsForPartialWordRange_1indexOfSelectedItem_1, charRange, index); 159 objc.id result = OS.objc_msgSend(this.id_, OS.sel_completionsForPartialWordRange_1indexOfSelectedItem_1, charRange, index);
169 return result !is null ? new NSArray(result) : null; 160 return result !is null ? new NSArray(result) : null;
170 } 161 }
171 162
172 public NSParagraphStyle defaultParagraphStyle () 163 public NSParagraphStyle defaultParagraphStyle ()
173 { 164 {
174 objc.id result = OS.objc_msgSend(this.id, OS.sel_defaultParagraphStyle); 165 objc.id result = OS.objc_msgSend(this.id_, OS.sel_defaultParagraphStyle);
175 return result !is null ? new NSParagraphStyle(result) : null; 166 return result !is null ? new NSParagraphStyle(result) : null;
176 } 167 }
177 168
178 public id delegatee () 169 public id delegatee ()
179 { 170 {
180 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 171 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
181 return result !is null ? new id(result) : null; 172 return result !is null ? new id(result) : null;
182 } 173 }
183 174
184 public void didChangeText () 175 public void didChangeText ()
185 { 176 {
186 OS.objc_msgSend(this.id, OS.sel_didChangeText); 177 OS.objc_msgSend(this.id_, OS.sel_didChangeText);
187 } 178 }
188 179
189 public bool displaysLinkToolTips () 180 public bool displaysLinkToolTips ()
190 { 181 {
191 return OS.objc_msgSend(this.id, OS.sel_displaysLinkToolTips) !is null; 182 return OS.objc_msgSend(this.id_, OS.sel_displaysLinkToolTips) !is null;
192 } 183 }
193 184
194 public NSImage dragImageForSelectionWithEvent (NSEvent event, NSPointPointer origin) 185 public NSImage dragImageForSelectionWithEvent (NSEvent event, NSPointPointer origin)
195 { 186 {
196 objc.id result = OS.objc_msgSend(this.id, OS.sel_dragImageForSelectionWithEvent_1origin_1, event !is null ? event.id : null, origin); 187 objc.id result = OS.objc_msgSend(this.id_, OS.sel_dragImageForSelectionWithEvent_1origin_1, event !is null ? event.id_ : null, origin);
197 return result !is null ? new NSImage(result) : null; 188 return result !is null ? new NSImage(result) : null;
198 } 189 }
199 190
200 public NSDragOperation dragOperationForDraggingInfo (id dragInfo, NSString type) 191 public NSDragOperation dragOperationForDraggingInfo (id dragInfo, NSString type)
201 { 192 {
202 return cast(NSDragOperation) OS.objc_msgSend(this.id, OS.sel_dragOperationForDraggingInfo_1type_1, dragInfo !is null ? dragInfo.id : null, 193 return cast(NSDragOperation) OS.objc_msgSend(this.id_, OS.sel_dragOperationForDraggingInfo_1type_1, dragInfo !is null ? dragInfo.id_ : null,
203 type !is null ? type.id : null); 194 type !is null ? type.id_ : null);
204 } 195 }
205 196
206 public bool dragSelectionWithEvent (NSEvent event, NSSize mouseOffset, bool slideBack) 197 public bool dragSelectionWithEvent (NSEvent event, NSSize mouseOffset, bool slideBack)
207 { 198 {
208 return OS.objc_msgSend(this.id, OS.sel_dragSelectionWithEvent_1offset_1slideBack_1, event !is null ? event.id : null, mouseOffset, slideBack) !is null; 199 return OS.objc_msgSend(this.id_, OS.sel_dragSelectionWithEvent_1offset_1slideBack_1, event !is null ? event.id_ : null, mouseOffset, slideBack) !is null;
209 } 200 }
210 201
211 public void drawInsertionPointInRect (NSRect rect, NSColor color, bool flag) 202 public void drawInsertionPointInRect (NSRect rect, NSColor color, bool flag)
212 { 203 {
213 OS.objc_msgSend(this.id, OS.sel_drawInsertionPointInRect_1color_1turnedOn_1, rect, color !is null ? color.id : null, flag); 204 OS.objc_msgSend(this.id_, OS.sel_drawInsertionPointInRect_1color_1turnedOn_1, rect, color !is null ? color.id_ : null, flag);
214 } 205 }
215 206
216 public void drawViewBackgroundInRect (NSRect rect) 207 public void drawViewBackgroundInRect (NSRect rect)
217 { 208 {
218 OS.objc_msgSend(this.id, OS.sel_drawViewBackgroundInRect_1, rect); 209 OS.objc_msgSend(this.id_, OS.sel_drawViewBackgroundInRect_1, rect);
219 } 210 }
220 211
221 public bool drawsBackground () 212 public bool drawsBackground ()
222 { 213 {
223 return OS.objc_msgSend(this.id, OS.sel_drawsBackground) !is null; 214 return OS.objc_msgSend(this.id_, OS.sel_drawsBackground) !is null;
224 } 215 }
225 216
226 public NSRect firstRectForCharacterRange (NSRange range) 217 public NSRect firstRectForCharacterRange (NSRange range)
227 { 218 {
228 NSRect result; 219 NSRect result;
229 OS.objc_msgSend_stret(result, id, OS.sel_firstRectForCharacterRange_1, range); 220 OS.objc_msgSend_stret(&result, id_, OS.sel_firstRectForCharacterRange_1, range);
230 return result; 221 return result;
231 } 222 }
232 223
233 public bool importsGraphics () 224 public bool importsGraphics ()
234 { 225 {
235 return OS.objc_msgSend(this.id, OS.sel_importsGraphics) !is null; 226 return OS.objc_msgSend(this.id_, OS.sel_importsGraphics) !is null;
236 } 227 }
237 228
238 public id initWithFrame_ (NSRect frameRect) 229 public id initWithFrame_ (NSRect frameRect)
239 { 230 {
240 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithFrame_1, frameRect); 231 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithFrame_1, frameRect);
241 return result !is null ? new id(result) : null; 232 return result !is null ? new id(result) : null;
242 } 233 }
243 234
244 public id initWithFrame_textContainer_ (NSRect frameRect, NSTextContainer container) 235 public id initWithFrame_textContainer_ (NSRect frameRect, NSTextContainer container)
245 { 236 {
246 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithFrame_1textContainer_1, frameRect, container !is null ? container.id : null); 237 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithFrame_1textContainer_1, frameRect, container !is null ? container.id_ : null);
247 return result !is null ? new id(result) : null; 238 return result !is null ? new id(result) : null;
248 } 239 }
249 240
250 public void insertCompletion (NSString word, NSRange charRange, NSInteger movement, bool flag) 241 public void insertCompletion (NSString word, NSRange charRange, NSInteger movement, bool flag)
251 { 242 {
252 OS.objc_msgSend(this.id, OS.sel_insertCompletion_1forPartialWordRange_1movement_1isFinal_1, word !is null ? word.id : null, charRange, 243 OS.objc_msgSend(this.id_, OS.sel_insertCompletion_1forPartialWordRange_1movement_1isFinal_1, word !is null ? word.id_ : null, charRange,
253 movement, flag); 244 movement, flag);
254 } 245 }
255 246
256 public void insertText (id insertString) 247 public void insertText (id insertString)
257 { 248 {
258 OS.objc_msgSend(this.id, OS.sel_insertText_1, insertString !is null ? insertString.id : null); 249 OS.objc_msgSend(this.id_, OS.sel_insertText_1, insertString !is null ? insertString.id_ : null);
259 } 250 }
260 251
261 public NSColor insertionPointColor () 252 public NSColor insertionPointColor ()
262 { 253 {
263 objc.id result = OS.objc_msgSend(this.id, OS.sel_insertionPointColor); 254 objc.id result = OS.objc_msgSend(this.id_, OS.sel_insertionPointColor);
264 return result !is null ? new NSColor(result) : null; 255 return result !is null ? new NSColor(result) : null;
265 } 256 }
266 257
267 public void invalidateTextContainerOrigin () 258 public void invalidateTextContainerOrigin ()
268 { 259 {
269 OS.objc_msgSend(this.id, OS.sel_invalidateTextContainerOrigin); 260 OS.objc_msgSend(this.id_, OS.sel_invalidateTextContainerOrigin);
270 } 261 }
271 262
272 public bool isAutomaticLinkDetectionEnabled () 263 public bool isAutomaticLinkDetectionEnabled ()
273 { 264 {
274 return OS.objc_msgSend(this.id, OS.sel_isAutomaticLinkDetectionEnabled) !is null; 265 return OS.objc_msgSend(this.id_, OS.sel_isAutomaticLinkDetectionEnabled) !is null;
275 } 266 }
276 267
277 public bool isAutomaticQuoteSubstitutionEnabled () 268 public bool isAutomaticQuoteSubstitutionEnabled ()
278 { 269 {
279 return OS.objc_msgSend(this.id, OS.sel_isAutomaticQuoteSubstitutionEnabled) !is null; 270 return OS.objc_msgSend(this.id_, OS.sel_isAutomaticQuoteSubstitutionEnabled) !is null;
280 } 271 }
281 272
282 public bool isContinuousSpellCheckingEnabled () 273 public bool isContinuousSpellCheckingEnabled ()
283 { 274 {
284 return OS.objc_msgSend(this.id, OS.sel_isContinuousSpellCheckingEnabled) !is null; 275 return OS.objc_msgSend(this.id_, OS.sel_isContinuousSpellCheckingEnabled) !is null;
285 } 276 }
286 277
287 public bool isEditable () 278 public bool isEditable ()
288 { 279 {
289 return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; 280 return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null;
290 } 281 }
291 282
292 public bool isFieldEditor () 283 public bool isFieldEditor ()
293 { 284 {
294 return OS.objc_msgSend(this.id, OS.sel_isFieldEditor) !is null; 285 return OS.objc_msgSend(this.id_, OS.sel_isFieldEditor) !is null;
295 } 286 }
296 287
297 public bool isGrammarCheckingEnabled () 288 public bool isGrammarCheckingEnabled ()
298 { 289 {
299 return OS.objc_msgSend(this.id, OS.sel_isGrammarCheckingEnabled) !is null; 290 return OS.objc_msgSend(this.id_, OS.sel_isGrammarCheckingEnabled) !is null;
300 } 291 }
301 292
302 public bool isRichText () 293 public bool isRichText ()
303 { 294 {
304 return OS.objc_msgSend(this.id, OS.sel_isRichText) !is null; 295 return OS.objc_msgSend(this.id_, OS.sel_isRichText) !is null;
305 } 296 }
306 297
307 public bool isRulerVisible () 298 public bool isRulerVisible ()
308 { 299 {
309 return OS.objc_msgSend(this.id, OS.sel_isRulerVisible) !is null; 300 return OS.objc_msgSend(this.id_, OS.sel_isRulerVisible) !is null;
310 } 301 }
311 302
312 public bool isSelectable () 303 public bool isSelectable ()
313 { 304 {
314 return OS.objc_msgSend(this.id, OS.sel_isSelectable) !is null; 305 return OS.objc_msgSend(this.id_, OS.sel_isSelectable) !is null;
315 } 306 }
316 307
317 public NSLayoutManager layoutManager () 308 public NSLayoutManager layoutManager ()
318 { 309 {
319 objc.id result = OS.objc_msgSend(this.id, OS.sel_layoutManager); 310 objc.id result = OS.objc_msgSend(this.id_, OS.sel_layoutManager);
320 return result !is null ? new NSLayoutManager(result) : null; 311 return result !is null ? new NSLayoutManager(result) : null;
321 } 312 }
322 313
323 public NSDictionary linkTextAttributes () 314 public NSDictionary linkTextAttributes ()
324 { 315 {
325 objc.id result = OS.objc_msgSend(this.id, OS.sel_linkTextAttributes); 316 objc.id result = OS.objc_msgSend(this.id_, OS.sel_linkTextAttributes);
326 return result !is null ? new NSDictionary(result) : null; 317 return result !is null ? new NSDictionary(result) : null;
327 } 318 }
328 319
329 public void loosenKerning (id sender) 320 public void loosenKerning (id sender)
330 { 321 {
331 OS.objc_msgSend(this.id, OS.sel_loosenKerning_1, sender !is null ? sender.id : null); 322 OS.objc_msgSend(this.id_, OS.sel_loosenKerning_1, sender !is null ? sender.id_ : null);
332 } 323 }
333 324
334 public void lowerBaseline (id sender) 325 public void lowerBaseline (id sender)
335 { 326 {
336 OS.objc_msgSend(this.id, OS.sel_lowerBaseline_1, sender !is null ? sender.id : null); 327 OS.objc_msgSend(this.id_, OS.sel_lowerBaseline_1, sender !is null ? sender.id_ : null);
337 } 328 }
338 329
339 public NSDictionary markedTextAttributes () 330 public NSDictionary markedTextAttributes ()
340 { 331 {
341 objc.id result = OS.objc_msgSend(this.id, OS.sel_markedTextAttributes); 332 objc.id result = OS.objc_msgSend(this.id_, OS.sel_markedTextAttributes);
342 return result !is null ? new NSDictionary(result) : null; 333 return result !is null ? new NSDictionary(result) : null;
343 } 334 }
344 335
345 public void orderFrontLinkPanel (id sender) 336 public void orderFrontLinkPanel (id sender)
346 { 337 {
347 OS.objc_msgSend(this.id, OS.sel_orderFrontLinkPanel_1, sender !is null ? sender.id : null); 338 OS.objc_msgSend(this.id_, OS.sel_orderFrontLinkPanel_1, sender !is null ? sender.id_ : null);
348 } 339 }
349 340
350 public void orderFrontListPanel (id sender) 341 public void orderFrontListPanel (id sender)
351 { 342 {
352 OS.objc_msgSend(this.id, OS.sel_orderFrontListPanel_1, sender !is null ? sender.id : null); 343 OS.objc_msgSend(this.id_, OS.sel_orderFrontListPanel_1, sender !is null ? sender.id_ : null);
353 } 344 }
354 345
355 public void orderFrontSpacingPanel (id sender) 346 public void orderFrontSpacingPanel (id sender)
356 { 347 {
357 OS.objc_msgSend(this.id, OS.sel_orderFrontSpacingPanel_1, sender !is null ? sender.id : null); 348 OS.objc_msgSend(this.id_, OS.sel_orderFrontSpacingPanel_1, sender !is null ? sender.id_ : null);
358 } 349 }
359 350
360 public void orderFrontTablePanel (id sender) 351 public void orderFrontTablePanel (id sender)
361 { 352 {
362 OS.objc_msgSend(this.id, OS.sel_orderFrontTablePanel_1, sender !is null ? sender.id : null); 353 OS.objc_msgSend(this.id_, OS.sel_orderFrontTablePanel_1, sender !is null ? sender.id_ : null);
363 } 354 }
364 355
365 public void outline (id sender) 356 public void outline (id sender)
366 { 357 {
367 OS.objc_msgSend(this.id, OS.sel_outline_1, sender !is null ? sender.id : null); 358 OS.objc_msgSend(this.id_, OS.sel_outline_1, sender !is null ? sender.id_ : null);
368 } 359 }
369 360
370 public void pasteAsPlainText (id sender) 361 public void pasteAsPlainText (id sender)
371 { 362 {
372 OS.objc_msgSend(this.id, OS.sel_pasteAsPlainText_1, sender !is null ? sender.id : null); 363 OS.objc_msgSend(this.id_, OS.sel_pasteAsPlainText_1, sender !is null ? sender.id_ : null);
373 } 364 }
374 365
375 public void pasteAsRichText (id sender) 366 public void pasteAsRichText (id sender)
376 { 367 {
377 OS.objc_msgSend(this.id, OS.sel_pasteAsRichText_1, sender !is null ? sender.id : null); 368 OS.objc_msgSend(this.id_, OS.sel_pasteAsRichText_1, sender !is null ? sender.id_ : null);
378 } 369 }
379 370
380 public void performFindPanelAction (id sender) 371 public void performFindPanelAction (id sender)
381 { 372 {
382 OS.objc_msgSend(this.id, OS.sel_performFindPanelAction_1, sender !is null ? sender.id : null); 373 OS.objc_msgSend(this.id_, OS.sel_performFindPanelAction_1, sender !is null ? sender.id_ : null);
383 } 374 }
384 375
385 public NSString preferredPasteboardTypeFromArray (NSArray availableTypes, NSArray allowedTypes) 376 public NSString preferredPasteboardTypeFromArray (NSArray availableTypes, NSArray allowedTypes)
386 { 377 {
387 objc.id result = OS.objc_msgSend(this.id, OS.sel_preferredPasteboardTypeFromArray_1restrictedToTypesFromArray_1, 378 objc.id result = OS.objc_msgSend(this.id_, OS.sel_preferredPasteboardTypeFromArray_1restrictedToTypesFromArray_1,
388 availableTypes !is null ? availableTypes.id : null, allowedTypes !is null ? allowedTypes.id : null); 379 availableTypes !is null ? availableTypes.id_ : null, allowedTypes !is null ? allowedTypes.id_ : null);
389 return result !is null ? new NSString(result) : null; 380 return result !is null ? new NSString(result) : null;
390 } 381 }
391 382
392 public void raiseBaseline (id sender) 383 public void raiseBaseline (id sender)
393 { 384 {
394 OS.objc_msgSend(this.id, OS.sel_raiseBaseline_1, sender !is null ? sender.id : null); 385 OS.objc_msgSend(this.id_, OS.sel_raiseBaseline_1, sender !is null ? sender.id_ : null);
395 } 386 }
396 387
397 public NSRange rangeForUserCharacterAttributeChange () 388 public NSRange rangeForUserCharacterAttributeChange ()
398 { 389 {
399 NSRange result; 390 NSRange result;
400 OS.objc_msgSend_stret(result, this.id, OS.sel_rangeForUserCharacterAttributeChange); 391 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rangeForUserCharacterAttributeChange);
401 return result; 392 return result;
402 } 393 }
403 394
404 public NSRange rangeForUserCompletion () 395 public NSRange rangeForUserCompletion ()
405 { 396 {
406 NSRange result; 397 NSRange result;
407 OS.objc_msgSend_stret(result, this.id, OS.sel_rangeForUserCompletion); 398 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rangeForUserCompletion);
408 return result; 399 return result;
409 } 400 }
410 401
411 public NSRange rangeForUserParagraphAttributeChange () 402 public NSRange rangeForUserParagraphAttributeChange ()
412 { 403 {
413 NSRange result; 404 NSRange result;
414 OS.objc_msgSend_stret(result, this.id, OS.sel_rangeForUserParagraphAttributeChange); 405 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rangeForUserParagraphAttributeChange);
415 return result; 406 return result;
416 } 407 }
417 408
418 public NSRange rangeForUserTextChange () 409 public NSRange rangeForUserTextChange ()
419 { 410 {
420 NSRange result; 411 NSRange result;
421 OS.objc_msgSend_stret(result, this.id, OS.sel_rangeForUserTextChange); 412 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rangeForUserTextChange);
422 return result; 413 return result;
423 } 414 }
424 415
425 public NSArray rangesForUserCharacterAttributeChange () 416 public NSArray rangesForUserCharacterAttributeChange ()
426 { 417 {
427 objc.id result = OS.objc_msgSend(this.id, OS.sel_rangesForUserCharacterAttributeChange); 418 objc.id result = OS.objc_msgSend(this.id_, OS.sel_rangesForUserCharacterAttributeChange);
428 return result !is null ? new NSArray(result) : null; 419 return result !is null ? new NSArray(result) : null;
429 } 420 }
430 421
431 public NSArray rangesForUserParagraphAttributeChange () 422 public NSArray rangesForUserParagraphAttributeChange ()
432 { 423 {
433 objc.id result = OS.objc_msgSend(this.id, OS.sel_rangesForUserParagraphAttributeChange); 424 objc.id result = OS.objc_msgSend(this.id_, OS.sel_rangesForUserParagraphAttributeChange);
434 return result !is null ? new NSArray(result) : null; 425 return result !is null ? new NSArray(result) : null;
435 } 426 }
436 427
437 public NSArray rangesForUserTextChange () 428 public NSArray rangesForUserTextChange ()
438 { 429 {
439 objc.id result = OS.objc_msgSend(this.id, OS.sel_rangesForUserTextChange); 430 objc.id result = OS.objc_msgSend(this.id_, OS.sel_rangesForUserTextChange);
440 return result !is null ? new NSArray(result) : null; 431 return result !is null ? new NSArray(result) : null;
441 } 432 }
442 433
443 public bool readSelectionFromPasteboard_ (NSPasteboard pboard) 434 public bool readSelectionFromPasteboard_ (NSPasteboard pboard)
444 { 435 {
445 return OS.objc_msgSend(this.id, OS.sel_readSelectionFromPasteboard_1, pboard !is null ? pboard.id : null) !is null; 436 return OS.objc_msgSend(this.id_, OS.sel_readSelectionFromPasteboard_1, pboard !is null ? pboard.id_ : null) !is null;
446 } 437 }
447 438
448 public bool readSelectionFromPasteboard_type_ (NSPasteboard pboard, NSString type) 439 public bool readSelectionFromPasteboard_type_ (NSPasteboard pboard, NSString type)
449 { 440 {
450 return OS.objc_msgSend(this.id, OS.sel_readSelectionFromPasteboard_1type_1, pboard !is null ? pboard.id : null, 441 return OS.objc_msgSend(this.id_, OS.sel_readSelectionFromPasteboard_1type_1, pboard !is null ? pboard.id_ : null,
451 type !is null ? type.id : null) !is null; 442 type !is null ? type.id_ : null) !is null;
452 } 443 }
453 444
454 public NSArray readablePasteboardTypes () 445 public NSArray readablePasteboardTypes ()
455 { 446 {
456 objc.id result = OS.objc_msgSend(this.id, OS.sel_readablePasteboardTypes); 447 objc.id result = OS.objc_msgSend(this.id_, OS.sel_readablePasteboardTypes);
457 return result !is null ? new NSArray(result) : null; 448 return result !is null ? new NSArray(result) : null;
458 } 449 }
459 450
460 public static void registerForServices () 451 public static void registerForServices ()
461 { 452 {
462 OS.objc_msgSend(OS.class_NSTextView, OS.sel_registerForServices); 453 OS.objc_msgSend(OS.class_NSTextView, OS.sel_registerForServices);
463 } 454 }
464 455
465 public void replaceTextContainer (NSTextContainer newContainer) 456 public void replaceTextContainer (NSTextContainer newContainer)
466 { 457 {
467 OS.objc_msgSend(this.id, OS.sel_replaceTextContainer_1, newContainer !is null ? newContainer.id : null); 458 OS.objc_msgSend(this.id_, OS.sel_replaceTextContainer_1, newContainer !is null ? newContainer.id_ : null);
468 } 459 }
469 460
470 public void rulerView_didAddMarker_ (NSRulerView ruler, NSRulerMarker marker) 461 public void rulerView_didAddMarker_ (NSRulerView ruler, NSRulerMarker marker)
471 { 462 {
472 OS.objc_msgSend(this.id, OS.sel_rulerView_1didAddMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null); 463 OS.objc_msgSend(this.id_, OS.sel_rulerView_1didAddMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null);
473 } 464 }
474 465
475 public void rulerView_didMoveMarker_ (NSRulerView ruler, NSRulerMarker marker) 466 public void rulerView_didMoveMarker_ (NSRulerView ruler, NSRulerMarker marker)
476 { 467 {
477 OS.objc_msgSend(this.id, OS.sel_rulerView_1didMoveMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null); 468 OS.objc_msgSend(this.id_, OS.sel_rulerView_1didMoveMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null);
478 } 469 }
479 470
480 public void rulerView_didRemoveMarker_ (NSRulerView ruler, NSRulerMarker marker) 471 public void rulerView_didRemoveMarker_ (NSRulerView ruler, NSRulerMarker marker)
481 { 472 {
482 OS.objc_msgSend(this.id, OS.sel_rulerView_1didRemoveMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null); 473 OS.objc_msgSend(this.id_, OS.sel_rulerView_1didRemoveMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null);
483 } 474 }
484 475
485 public void rulerView_handleMouseDown_ (NSRulerView ruler, NSEvent event) 476 public void rulerView_handleMouseDown_ (NSRulerView ruler, NSEvent event)
486 { 477 {
487 OS.objc_msgSend(this.id, OS.sel_rulerView_1handleMouseDown_1, ruler !is null ? ruler.id : null, event !is null ? event.id : null); 478 OS.objc_msgSend(this.id_, OS.sel_rulerView_1handleMouseDown_1, ruler !is null ? ruler.id_ : null, event !is null ? event.id_ : null);
488 } 479 }
489 480
490 public bool rulerView_shouldAddMarker_ (NSRulerView ruler, NSRulerMarker marker) 481 public bool rulerView_shouldAddMarker_ (NSRulerView ruler, NSRulerMarker marker)
491 { 482 {
492 return OS.objc_msgSend(this.id, OS.sel_rulerView_1shouldAddMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null) !is null; 483 return OS.objc_msgSend(this.id_, OS.sel_rulerView_1shouldAddMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null) !is null;
493 } 484 }
494 485
495 public bool rulerView_shouldMoveMarker_ (NSRulerView ruler, NSRulerMarker marker) 486 public bool rulerView_shouldMoveMarker_ (NSRulerView ruler, NSRulerMarker marker)
496 { 487 {
497 return OS.objc_msgSend(this.id, OS.sel_rulerView_1shouldMoveMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null) !is null; 488 return OS.objc_msgSend(this.id_, OS.sel_rulerView_1shouldMoveMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null) !is null;
498 } 489 }
499 490
500 public bool rulerView_shouldRemoveMarker_ (NSRulerView ruler, NSRulerMarker marker) 491 public bool rulerView_shouldRemoveMarker_ (NSRulerView ruler, NSRulerMarker marker)
501 { 492 {
502 return OS.objc_msgSend(this.id, OS.sel_rulerView_1shouldRemoveMarker_1, ruler !is null ? ruler.id : null, marker !is null ? marker.id : null) !is null; 493 return OS.objc_msgSend(this.id_, OS.sel_rulerView_1shouldRemoveMarker_1, ruler !is null ? ruler.id_ : null, marker !is null ? marker.id_ : null) !is null;
503 } 494 }
504 495
505 public CGFloat rulerView_willAddMarker_atLocation_ (NSRulerView ruler, NSRulerMarker marker, CGFloat location) 496 public CGFloat rulerView_willAddMarker_atLocation_ (NSRulerView ruler, NSRulerMarker marker, CGFloat location)
506 { 497 {
507 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_rulerView_1willAddMarker_1atLocation_1, ruler !is null ? ruler.id : null, 498 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_rulerView_1willAddMarker_1atLocation_1, ruler !is null ? ruler.id_ : null,
508 marker !is null ? marker.id : null, location); 499 marker !is null ? marker.id_ : null, location);
509 } 500 }
510 501
511 public CGFloat rulerView_willMoveMarker_toLocation_ (NSRulerView ruler, NSRulerMarker marker, CGFloat location) 502 public CGFloat rulerView_willMoveMarker_toLocation_ (NSRulerView ruler, NSRulerMarker marker, CGFloat location)
512 { 503 {
513 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_rulerView_1willMoveMarker_1toLocation_1, ruler !is null ? ruler.id : null, 504 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_rulerView_1willMoveMarker_1toLocation_1, ruler !is null ? ruler.id_ : null,
514 marker !is null ? marker.id : null, location); 505 marker !is null ? marker.id_ : null, location);
515 } 506 }
516 507
517 public NSArray selectedRanges () 508 public NSArray selectedRanges ()
518 { 509 {
519 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedRanges); 510 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedRanges);
520 return result !is null ? new NSArray(result) : null; 511 return result !is null ? new NSArray(result) : null;
521 } 512 }
522 513
523 public NSDictionary selectedTextAttributes () 514 public NSDictionary selectedTextAttributes ()
524 { 515 {
525 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedTextAttributes); 516 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedTextAttributes);
526 return result !is null ? new NSDictionary(result) : null; 517 return result !is null ? new NSDictionary(result) : null;
527 } 518 }
528 519
529 public NSSelectionAffinity selectionAffinity () 520 public NSSelectionAffinity selectionAffinity ()
530 { 521 {
531 return cast(NSSelectionAffinity) OS.objc_msgSend(this.id, OS.sel_selectionAffinity); 522 return cast(NSSelectionAffinity) OS.objc_msgSend(this.id_, OS.sel_selectionAffinity);
532 } 523 }
533 524
534 public NSSelectionGranularity selectionGranularity () 525 public NSSelectionGranularity selectionGranularity ()
535 { 526 {
536 return cast(NSSelectionGranularity) OS.objc_msgSend(this.id, OS.sel_selectionGranularity); 527 return cast(NSSelectionGranularity) OS.objc_msgSend(this.id_, OS.sel_selectionGranularity);
537 } 528 }
538 529
539 public NSRange selectionRangeForProposedRange (NSRange proposedCharRange, NSSelectionGranularity granularity) 530 public NSRange selectionRangeForProposedRange (NSRange proposedCharRange, NSSelectionGranularity granularity)
540 { 531 {
541 NSRange result; 532 NSRange result;
542 OS.objc_msgSend_stret(result, this.id, OS.sel_selectionRangeForProposedRange_1granularity_1, proposedCharRange, granularity); 533 OS.objc_msgSend_stret(&result, this.id_, OS.sel_selectionRangeForProposedRange_1granularity_1, proposedCharRange, granularity);
543 return result; 534 return result;
544 } 535 }
545 536
546 public void setAcceptsGlyphInfo (bool flag) 537 public void setAcceptsGlyphInfo (bool flag)
547 { 538 {
548 OS.objc_msgSend(this.id, OS.sel_setAcceptsGlyphInfo_1, flag); 539 OS.objc_msgSend(this.id_, OS.sel_setAcceptsGlyphInfo_1, flag);
549 } 540 }
550 541
551 public void setAlignment (NSTextAlignment alignment, NSRange range) 542 public void setAlignment (NSTextAlignment alignment, NSRange range)
552 { 543 {
553 OS.objc_msgSend(this.id, OS.sel_setAlignment_1range_1, alignment, range); 544 OS.objc_msgSend(this.id_, OS.sel_setAlignment_1range_1, alignment, range);
554 } 545 }
555 546
556 public void setAllowedInputSourceLocales (NSArray localeIdentifiers) 547 public void setAllowedInputSourceLocales (NSArray localeIdentifiers)
557 { 548 {
558 OS.objc_msgSend(this.id, OS.sel_setAllowedInputSourceLocales_1, localeIdentifiers !is null ? localeIdentifiers.id : null); 549 OS.objc_msgSend(this.id_, OS.sel_setAllowedInputSourceLocales_1, localeIdentifiers !is null ? localeIdentifiers.id_ : null);
559 } 550 }
560 551
561 public void setAllowsDocumentBackgroundColorChange (bool flag) 552 public void setAllowsDocumentBackgroundColorChange (bool flag)
562 { 553 {
563 OS.objc_msgSend(this.id, OS.sel_setAllowsDocumentBackgroundColorChange_1, flag); 554 OS.objc_msgSend(this.id_, OS.sel_setAllowsDocumentBackgroundColorChange_1, flag);
564 } 555 }
565 556
566 public void setAllowsImageEditing (bool flag) 557 public void setAllowsImageEditing (bool flag)
567 { 558 {
568 OS.objc_msgSend(this.id, OS.sel_setAllowsImageEditing_1, flag); 559 OS.objc_msgSend(this.id_, OS.sel_setAllowsImageEditing_1, flag);
569 } 560 }
570 561
571 public void setAllowsUndo (bool flag) 562 public void setAllowsUndo (bool flag)
572 { 563 {
573 OS.objc_msgSend(this.id, OS.sel_setAllowsUndo_1, flag); 564 OS.objc_msgSend(this.id_, OS.sel_setAllowsUndo_1, flag);
574 } 565 }
575 566
576 public void setAutomaticLinkDetectionEnabled (bool flag) 567 public void setAutomaticLinkDetectionEnabled (bool flag)
577 { 568 {
578 OS.objc_msgSend(this.id, OS.sel_setAutomaticLinkDetectionEnabled_1, flag); 569 OS.objc_msgSend(this.id_, OS.sel_setAutomaticLinkDetectionEnabled_1, flag);
579 } 570 }
580 571
581 public void setAutomaticQuoteSubstitutionEnabled (bool flag) 572 public void setAutomaticQuoteSubstitutionEnabled (bool flag)
582 { 573 {
583 OS.objc_msgSend(this.id, OS.sel_setAutomaticQuoteSubstitutionEnabled_1, flag); 574 OS.objc_msgSend(this.id_, OS.sel_setAutomaticQuoteSubstitutionEnabled_1, flag);
584 } 575 }
585 576
586 public void setBackgroundColor (NSColor color) 577 public void setBackgroundColor (NSColor color)
587 { 578 {
588 OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color !is null ? color.id : null); 579 OS.objc_msgSend(this.id_, OS.sel_setBackgroundColor_1, color !is null ? color.id_ : null);
589 } 580 }
590 581
591 public void setBaseWritingDirection (NSWritingDirection writingDirection, NSRange range) 582 public void setBaseWritingDirection (NSWritingDirection writingDirection, NSRange range)
592 { 583 {
593 OS.objc_msgSend(this.id, OS.sel_setBaseWritingDirection_1range_1, writingDirection, range); 584 OS.objc_msgSend(this.id_, OS.sel_setBaseWritingDirection_1range_1, writingDirection, range);
594 } 585 }
595 586
596 public void setConstrainedFrameSize (NSSize desiredSize) 587 public void setConstrainedFrameSize (NSSize desiredSize)
597 { 588 {
598 OS.objc_msgSend(this.id, OS.sel_setConstrainedFrameSize_1, desiredSize); 589 OS.objc_msgSend(this.id_, OS.sel_setConstrainedFrameSize_1, desiredSize);
599 } 590 }
600 591
601 public void setContinuousSpellCheckingEnabled (bool flag) 592 public void setContinuousSpellCheckingEnabled (bool flag)
602 { 593 {
603 OS.objc_msgSend(this.id, OS.sel_setContinuousSpellCheckingEnabled_1, flag); 594 OS.objc_msgSend(this.id_, OS.sel_setContinuousSpellCheckingEnabled_1, flag);
604 } 595 }
605 596
606 public void setDefaultParagraphStyle (NSParagraphStyle paragraphStyle) 597 public void setDefaultParagraphStyle (NSParagraphStyle paragraphStyle)
607 { 598 {
608 OS.objc_msgSend(this.id, OS.sel_setDefaultParagraphStyle_1, paragraphStyle !is null ? paragraphStyle.id : null); 599 OS.objc_msgSend(this.id_, OS.sel_setDefaultParagraphStyle_1, paragraphStyle !is null ? paragraphStyle.id_ : null);
609 } 600 }
610 601
611 public void setDelegate (id anObject) 602 public void setDelegate (id anObject)
612 { 603 {
613 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject !is null ? anObject.id : null); 604 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, anObject !is null ? anObject.id_ : null);
614 } 605 }
615 606
616 public void setDisplaysLinkToolTips (bool flag) 607 public void setDisplaysLinkToolTips (bool flag)
617 { 608 {
618 OS.objc_msgSend(this.id, OS.sel_setDisplaysLinkToolTips_1, flag); 609 OS.objc_msgSend(this.id_, OS.sel_setDisplaysLinkToolTips_1, flag);
619 } 610 }
620 611
621 public void setDrawsBackground (bool flag) 612 public void setDrawsBackground (bool flag)
622 { 613 {
623 OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag); 614 OS.objc_msgSend(this.id_, OS.sel_setDrawsBackground_1, flag);
624 } 615 }
625 616
626 public void setEditable (bool flag) 617 public void setEditable (bool flag)
627 { 618 {
628 OS.objc_msgSend(this.id, OS.sel_setEditable_1, flag); 619 OS.objc_msgSend(this.id_, OS.sel_setEditable_1, flag);
629 } 620 }
630 621
631 public void setFieldEditor (bool flag) 622 public void setFieldEditor (bool flag)
632 { 623 {
633 OS.objc_msgSend(this.id, OS.sel_setFieldEditor_1, flag); 624 OS.objc_msgSend(this.id_, OS.sel_setFieldEditor_1, flag);
634 } 625 }
635 626
636 public void setGrammarCheckingEnabled (bool flag) 627 public void setGrammarCheckingEnabled (bool flag)
637 { 628 {
638 OS.objc_msgSend(this.id, OS.sel_setGrammarCheckingEnabled_1, flag); 629 OS.objc_msgSend(this.id_, OS.sel_setGrammarCheckingEnabled_1, flag);
639 } 630 }
640 631
641 public void setImportsGraphics (bool flag) 632 public void setImportsGraphics (bool flag)
642 { 633 {
643 OS.objc_msgSend(this.id, OS.sel_setImportsGraphics_1, flag); 634 OS.objc_msgSend(this.id_, OS.sel_setImportsGraphics_1, flag);
644 } 635 }
645 636
646 public void setInsertionPointColor (NSColor color) 637 public void setInsertionPointColor (NSColor color)
647 { 638 {
648 OS.objc_msgSend(this.id, OS.sel_setInsertionPointColor_1, color !is null ? color.id : null); 639 OS.objc_msgSend(this.id_, OS.sel_setInsertionPointColor_1, color !is null ? color.id_ : null);
649 } 640 }
650 641
651 public void setLinkTextAttributes (NSDictionary attributeDictionary) 642 public void setLinkTextAttributes (NSDictionary attributeDictionary)
652 { 643 {
653 OS.objc_msgSend(this.id, OS.sel_setLinkTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id : null); 644 OS.objc_msgSend(this.id_, OS.sel_setLinkTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id_ : null);
654 } 645 }
655 646
656 public void setMarkedTextAttributes (NSDictionary attributeDictionary) 647 public void setMarkedTextAttributes (NSDictionary attributeDictionary)
657 { 648 {
658 OS.objc_msgSend(this.id, OS.sel_setMarkedTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id : null); 649 OS.objc_msgSend(this.id_, OS.sel_setMarkedTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id_ : null);
659 } 650 }
660 651
661 public void setNeedsDisplayInRect (NSRect rect, bool flag) 652 public void setNeedsDisplayInRect (NSRect rect, bool flag)
662 { 653 {
663 OS.objc_msgSend(this.id, OS.sel_setNeedsDisplayInRect_1avoidAdditionalLayout_1, rect, flag); 654 OS.objc_msgSend(this.id_, OS.sel_setNeedsDisplayInRect_1avoidAdditionalLayout_1, rect, flag);
664 } 655 }
665 656
666 public void setRichText (bool flag) 657 public void setRichText (bool flag)
667 { 658 {
668 OS.objc_msgSend(this.id, OS.sel_setRichText_1, flag); 659 OS.objc_msgSend(this.id_, OS.sel_setRichText_1, flag);
669 } 660 }
670 661
671 public void setRulerVisible (bool flag) 662 public void setRulerVisible (bool flag)
672 { 663 {
673 OS.objc_msgSend(this.id, OS.sel_setRulerVisible_1, flag); 664 OS.objc_msgSend(this.id_, OS.sel_setRulerVisible_1, flag);
674 } 665 }
675 666
676 public void setSelectable (bool flag) 667 public void setSelectable (bool flag)
677 { 668 {
678 OS.objc_msgSend(this.id, OS.sel_setSelectable_1, flag); 669 OS.objc_msgSend(this.id_, OS.sel_setSelectable_1, flag);
679 } 670 }
680 671
681 public void setSelectedRange_ (NSRange charRange) 672 public void setSelectedRange_ (NSRange charRange)
682 { 673 {
683 OS.objc_msgSend(this.id, OS.sel_setSelectedRange_1, charRange); 674 OS.objc_msgSend(this.id_, OS.sel_setSelectedRange_1, charRange);
684 } 675 }
685 676
686 public void setSelectedRange_affinity_stillSelecting_ (NSRange charRange, NSSelectionAffinity affinity, bool stillSelectingFlag) 677 public void setSelectedRange_affinity_stillSelecting_ (NSRange charRange, NSSelectionAffinity affinity, bool stillSelectingFlag)
687 { 678 {
688 OS.objc_msgSend(this.id, OS.sel_setSelectedRange_1affinity_1stillSelecting_1, charRange, affinity, stillSelectingFlag); 679 OS.objc_msgSend(this.id_, OS.sel_setSelectedRange_1affinity_1stillSelecting_1, charRange, affinity, stillSelectingFlag);
689 } 680 }
690 681
691 public void setSelectedRanges_ (NSArray ranges) 682 public void setSelectedRanges_ (NSArray ranges)
692 { 683 {
693 OS.objc_msgSend(this.id, OS.sel_setSelectedRanges_1, ranges !is null ? ranges.id : null); 684 OS.objc_msgSend(this.id_, OS.sel_setSelectedRanges_1, ranges !is null ? ranges.id_ : null);
694 } 685 }
695 686
696 public void setSelectedRanges_affinity_stillSelecting_ (NSArray ranges, NSSelectionAffinity affinity, bool stillSelectingFlag) 687 public void setSelectedRanges_affinity_stillSelecting_ (NSArray ranges, NSSelectionAffinity affinity, bool stillSelectingFlag)
697 { 688 {
698 OS.objc_msgSend(this.id, OS.sel_setSelectedRanges_1affinity_1stillSelecting_1, ranges !is null ? ranges.id : null, affinity, 689 OS.objc_msgSend(this.id_, OS.sel_setSelectedRanges_1affinity_1stillSelecting_1, ranges !is null ? ranges.id_ : null, affinity,
699 stillSelectingFlag); 690 stillSelectingFlag);
700 } 691 }
701 692
702 public void setSelectedTextAttributes (NSDictionary attributeDictionary) 693 public void setSelectedTextAttributes (NSDictionary attributeDictionary)
703 { 694 {
704 OS.objc_msgSend(this.id, OS.sel_setSelectedTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id : null); 695 OS.objc_msgSend(this.id_, OS.sel_setSelectedTextAttributes_1, attributeDictionary !is null ? attributeDictionary.id_ : null);
705 } 696 }
706 697
707 public void setSelectionGranularity (NSSelectionGranularity granularity) 698 public void setSelectionGranularity (NSSelectionGranularity granularity)
708 { 699 {
709 OS.objc_msgSend(this.id, OS.sel_setSelectionGranularity_1, granularity); 700 OS.objc_msgSend(this.id_, OS.sel_setSelectionGranularity_1, granularity);
710 } 701 }
711 702
712 public void setSmartInsertDeleteEnabled (bool flag) 703 public void setSmartInsertDeleteEnabled (bool flag)
713 { 704 {
714 OS.objc_msgSend(this.id, OS.sel_setSmartInsertDeleteEnabled_1, flag); 705 OS.objc_msgSend(this.id_, OS.sel_setSmartInsertDeleteEnabled_1, flag);
715 } 706 }
716 707
717 public void setSpellingState (NSInteger value, NSRange charRange) 708 public void setSpellingState (NSInteger value, NSRange charRange)
718 { 709 {
719 OS.objc_msgSend(this.id, OS.sel_setSpellingState_1range_1, value, charRange); 710 OS.objc_msgSend(this.id_, OS.sel_setSpellingState_1range_1, value, charRange);
720 } 711 }
721 712
722 public void setTextContainer (NSTextContainer container) 713 public void setTextContainer (NSTextContainer container)
723 { 714 {
724 OS.objc_msgSend(this.id, OS.sel_setTextContainer_1, container !is null ? container.id : null); 715 OS.objc_msgSend(this.id_, OS.sel_setTextContainer_1, container !is null ? container.id_ : null);
725 } 716 }
726 717
727 public void setTextContainerInset (NSSize inset) 718 public void setTextContainerInset (NSSize inset)
728 { 719 {
729 OS.objc_msgSend(this.id, OS.sel_setTextContainerInset_1, inset); 720 OS.objc_msgSend(this.id_, OS.sel_setTextContainerInset_1, inset);
730 } 721 }
731 722
732 public void setTypingAttributes (NSDictionary attrs) 723 public void setTypingAttributes (NSDictionary attrs)
733 { 724 {
734 OS.objc_msgSend(this.id, OS.sel_setTypingAttributes_1, attrs !is null ? attrs.id : null); 725 OS.objc_msgSend(this.id_, OS.sel_setTypingAttributes_1, attrs !is null ? attrs.id_ : null);
735 } 726 }
736 727
737 public void setUsesFindPanel (bool flag) 728 public void setUsesFindPanel (bool flag)
738 { 729 {
739 OS.objc_msgSend(this.id, OS.sel_setUsesFindPanel_1, flag); 730 OS.objc_msgSend(this.id_, OS.sel_setUsesFindPanel_1, flag);
740 } 731 }
741 732
742 public void setUsesFontPanel (bool flag) 733 public void setUsesFontPanel (bool flag)
743 { 734 {
744 OS.objc_msgSend(this.id, OS.sel_setUsesFontPanel_1, flag); 735 OS.objc_msgSend(this.id_, OS.sel_setUsesFontPanel_1, flag);
745 } 736 }
746 737
747 public void setUsesRuler (bool flag) 738 public void setUsesRuler (bool flag)
748 { 739 {
749 OS.objc_msgSend(this.id, OS.sel_setUsesRuler_1, flag); 740 OS.objc_msgSend(this.id_, OS.sel_setUsesRuler_1, flag);
750 } 741 }
751 742
752 public bool shouldChangeTextInRange (NSRange affectedCharRange, NSString replacementString) 743 public bool shouldChangeTextInRange (NSRange affectedCharRange, NSString replacementString)
753 { 744 {
754 return OS.objc_msgSend(this.id, OS.sel_shouldChangeTextInRange_1replacementString_1, affectedCharRange, 745 return OS.objc_msgSend(this.id_, OS.sel_shouldChangeTextInRange_1replacementString_1, affectedCharRange,
755 replacementString !is null ? replacementString.id : null) !is null; 746 replacementString !is null ? replacementString.id_ : null) !is null;
756 } 747 }
757 748
758 public bool shouldChangeTextInRanges (NSArray affectedRanges, NSArray replacementStrings) 749 public bool shouldChangeTextInRanges (NSArray affectedRanges, NSArray replacementStrings)
759 { 750 {
760 return OS.objc_msgSend(this.id, OS.sel_shouldChangeTextInRanges_1replacementStrings_1, affectedRanges !is null ? affectedRanges.id : null, 751 return OS.objc_msgSend(this.id_, OS.sel_shouldChangeTextInRanges_1replacementStrings_1, affectedRanges !is null ? affectedRanges.id_ : null,
761 replacementStrings !is null ? replacementStrings.id : null) !is null; 752 replacementStrings !is null ? replacementStrings.id_ : null) !is null;
762 } 753 }
763 754
764 public bool shouldDrawInsertionPoint () 755 public bool shouldDrawInsertionPoint ()
765 { 756 {
766 return OS.objc_msgSend(this.id, OS.sel_shouldDrawInsertionPoint) !is null; 757 return OS.objc_msgSend(this.id_, OS.sel_shouldDrawInsertionPoint) !is null;
767 } 758 }
768 759
769 public void showFindIndicatorForRange (NSRange charRange) 760 public void showFindIndicatorForRange (NSRange charRange)
770 { 761 {
771 OS.objc_msgSend(this.id, OS.sel_showFindIndicatorForRange_1, charRange); 762 OS.objc_msgSend(this.id_, OS.sel_showFindIndicatorForRange_1, charRange);
772 } 763 }
773 764
774 public NSRange smartDeleteRangeForProposedRange (NSRange proposedCharRange) 765 public NSRange smartDeleteRangeForProposedRange (NSRange proposedCharRange)
775 { 766 {
776 NSRange result; 767 NSRange result;
777 OS.objc_msgSend_stret(result, this.id, OS.sel_smartDeleteRangeForProposedRange_1, proposedCharRange); 768 OS.objc_msgSend_stret(&result, this.id_, OS.sel_smartDeleteRangeForProposedRange_1, proposedCharRange);
778 return result; 769 return result;
779 } 770 }
780 771
781 public NSString smartInsertAfterStringForString (NSString pasteString, NSRange charRangeToReplace) 772 public NSString smartInsertAfterStringForString (NSString pasteString, NSRange charRangeToReplace)
782 { 773 {
783 objc.id result = OS.objc_msgSend(this.id, OS.sel_smartInsertAfterStringForString_1replacingRange_1, 774 objc.id result = OS.objc_msgSend(this.id_, OS.sel_smartInsertAfterStringForString_1replacingRange_1,
784 pasteString !is null ? pasteString.id : null, charRangeToReplace); 775 pasteString !is null ? pasteString.id_ : null, charRangeToReplace);
785 return result !is null ? new NSString(result) : null; 776 return result !is null ? new NSString(result) : null;
786 } 777 }
787 778
788 public NSString smartInsertBeforeStringForString (NSString pasteString, NSRange charRangeToReplace) 779 public NSString smartInsertBeforeStringForString (NSString pasteString, NSRange charRangeToReplace)
789 { 780 {
790 objc.id result = OS.objc_msgSend(this.id, OS.sel_smartInsertBeforeStringForString_1replacingRange_1, 781 objc.id result = OS.objc_msgSend(this.id_, OS.sel_smartInsertBeforeStringForString_1replacingRange_1,
791 pasteString !is null ? pasteString.id : null, charRangeToReplace); 782 pasteString !is null ? pasteString.id_ : null, charRangeToReplace);
792 return result !is null ? new NSString(result) : null; 783 return result !is null ? new NSString(result) : null;
793 } 784 }
794 785
795 public bool smartInsertDeleteEnabled () 786 public bool smartInsertDeleteEnabled ()
796 { 787 {
797 return OS.objc_msgSend(this.id, OS.sel_smartInsertDeleteEnabled) !is null; 788 return OS.objc_msgSend(this.id_, OS.sel_smartInsertDeleteEnabled) !is null;
798 } 789 }
799 790
800 public void smartInsertForString (NSString pasteString, NSRange charRangeToReplace, /*NSString** */objc.id** beforeString, /*NSString** */objc.id* afterString) 791 public void smartInsertForString (NSString pasteString, NSRange charRangeToReplace, /*NSString** */objc.id** beforeString, /*NSString** */objc.id* afterString)
801 { 792 {
802 OS.objc_msgSend(this.id, OS.sel_smartInsertForString_1replacingRange_1beforeString_1afterString_1, 793 OS.objc_msgSend(this.id_, OS.sel_smartInsertForString_1replacingRange_1beforeString_1afterString_1,
803 pasteString !is null ? pasteString.id : null, charRangeToReplace, beforeString, afterString); 794 pasteString !is null ? pasteString.id_ : null, charRangeToReplace, beforeString, afterString);
804 } 795 }
805 796
806 public NSInteger spellCheckerDocumentTag () 797 public NSInteger spellCheckerDocumentTag ()
807 { 798 {
808 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_spellCheckerDocumentTag); 799 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_spellCheckerDocumentTag);
809 } 800 }
810 801
811 public void startSpeaking (id sender) 802 public void startSpeaking (id sender)
812 { 803 {
813 OS.objc_msgSend(this.id, OS.sel_startSpeaking_1, sender !is null ? sender.id : null); 804 OS.objc_msgSend(this.id_, OS.sel_startSpeaking_1, sender !is null ? sender.id_ : null);
814 } 805 }
815 806
816 public void stopSpeaking (id sender) 807 public void stopSpeaking (id sender)
817 { 808 {
818 OS.objc_msgSend(this.id, OS.sel_stopSpeaking_1, sender !is null ? sender.id : null); 809 OS.objc_msgSend(this.id_, OS.sel_stopSpeaking_1, sender !is null ? sender.id_ : null);
819 } 810 }
820 811
821 public NSTextContainer textContainer () 812 public NSTextContainer textContainer ()
822 { 813 {
823 objc.id result = OS.objc_msgSend(this.id, OS.sel_textContainer); 814 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textContainer);
824 return result !is null ? new NSTextContainer(result) : null; 815 return result !is null ? new NSTextContainer(result) : null;
825 } 816 }
826 817
827 public NSSize textContainerInset () 818 public NSSize textContainerInset ()
828 { 819 {
829 NSSize result; 820 NSSize result;
830 OS.objc_msgSend_stret(result, this.id, OS.sel_textContainerInset); 821 OS.objc_msgSend_stret(&result, this.id_, OS.sel_textContainerInset);
831 return result; 822 return result;
832 } 823 }
833 824
834 public NSPoint textContainerOrigin () 825 public NSPoint textContainerOrigin ()
835 { 826 {
836 NSPoint result; 827 NSPoint result;
837 OS.objc_msgSend_stret(result, this.id, OS.sel_textContainerOrigin); 828 OS.objc_msgSend_stret(&result, this.id_, OS.sel_textContainerOrigin);
838 return result; 829 return result;
839 } 830 }
840 831
841 public NSTextStorage textStorage () 832 public NSTextStorage textStorage ()
842 { 833 {
843 objc.id result = OS.objc_msgSend(this.id, OS.sel_textStorage); 834 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textStorage);
844 return result !is null ? new NSTextStorage(result) : null; 835 return result !is null ? new NSTextStorage(result) : null;
845 } 836 }
846 837
847 public void tightenKerning (id sender) 838 public void tightenKerning (id sender)
848 { 839 {
849 OS.objc_msgSend(this.id, OS.sel_tightenKerning_1, sender !is null ? sender.id : null); 840 OS.objc_msgSend(this.id_, OS.sel_tightenKerning_1, sender !is null ? sender.id_ : null);
850 } 841 }
851 842
852 public void toggleAutomaticLinkDetection (id sender) 843 public void toggleAutomaticLinkDetection (id sender)
853 { 844 {
854 OS.objc_msgSend(this.id, OS.sel_toggleAutomaticLinkDetection_1, sender !is null ? sender.id : null); 845 OS.objc_msgSend(this.id_, OS.sel_toggleAutomaticLinkDetection_1, sender !is null ? sender.id_ : null);
855 } 846 }
856 847
857 public void toggleAutomaticQuoteSubstitution (id sender) 848 public void toggleAutomaticQuoteSubstitution (id sender)
858 { 849 {
859 OS.objc_msgSend(this.id, OS.sel_toggleAutomaticQuoteSubstitution_1, sender !is null ? sender.id : null); 850 OS.objc_msgSend(this.id_, OS.sel_toggleAutomaticQuoteSubstitution_1, sender !is null ? sender.id_ : null);
860 } 851 }
861 852
862 public void toggleBaseWritingDirection (id sender) 853 public void toggleBaseWritingDirection (id sender)
863 { 854 {
864 OS.objc_msgSend(this.id, OS.sel_toggleBaseWritingDirection_1, sender !is null ? sender.id : null); 855 OS.objc_msgSend(this.id_, OS.sel_toggleBaseWritingDirection_1, sender !is null ? sender.id_ : null);
865 } 856 }
866 857
867 public void toggleContinuousSpellChecking (id sender) 858 public void toggleContinuousSpellChecking (id sender)
868 { 859 {
869 OS.objc_msgSend(this.id, OS.sel_toggleContinuousSpellChecking_1, sender !is null ? sender.id : null); 860 OS.objc_msgSend(this.id_, OS.sel_toggleContinuousSpellChecking_1, sender !is null ? sender.id_ : null);
870 } 861 }
871 862
872 public void toggleGrammarChecking (id sender) 863 public void toggleGrammarChecking (id sender)
873 { 864 {
874 OS.objc_msgSend(this.id, OS.sel_toggleGrammarChecking_1, sender !is null ? sender.id : null); 865 OS.objc_msgSend(this.id_, OS.sel_toggleGrammarChecking_1, sender !is null ? sender.id_ : null);
875 } 866 }
876 867
877 public void toggleSmartInsertDelete (id sender) 868 public void toggleSmartInsertDelete (id sender)
878 { 869 {
879 OS.objc_msgSend(this.id, OS.sel_toggleSmartInsertDelete_1, sender !is null ? sender.id : null); 870 OS.objc_msgSend(this.id_, OS.sel_toggleSmartInsertDelete_1, sender !is null ? sender.id_ : null);
880 } 871 }
881 872
882 public void toggleTraditionalCharacterShape (id sender) 873 public void toggleTraditionalCharacterShape (id sender)
883 { 874 {
884 OS.objc_msgSend(this.id, OS.sel_toggleTraditionalCharacterShape_1, sender !is null ? sender.id : null); 875 OS.objc_msgSend(this.id_, OS.sel_toggleTraditionalCharacterShape_1, sender !is null ? sender.id_ : null);
885 } 876 }
886 877
887 public void turnOffKerning (id sender) 878 public void turnOffKerning (id sender)
888 { 879 {
889 OS.objc_msgSend(this.id, OS.sel_turnOffKerning_1, sender !is null ? sender.id : null); 880 OS.objc_msgSend(this.id_, OS.sel_turnOffKerning_1, sender !is null ? sender.id_ : null);
890 } 881 }
891 882
892 public void turnOffLigatures (id sender) 883 public void turnOffLigatures (id sender)
893 { 884 {
894 OS.objc_msgSend(this.id, OS.sel_turnOffLigatures_1, sender !is null ? sender.id : null); 885 OS.objc_msgSend(this.id_, OS.sel_turnOffLigatures_1, sender !is null ? sender.id_ : null);
895 } 886 }
896 887
897 public NSDictionary typingAttributes () 888 public NSDictionary typingAttributes ()
898 { 889 {
899 objc.id result = OS.objc_msgSend(this.id, OS.sel_typingAttributes); 890 objc.id result = OS.objc_msgSend(this.id_, OS.sel_typingAttributes);
900 return result !is null ? new NSDictionary(result) : null; 891 return result !is null ? new NSDictionary(result) : null;
901 } 892 }
902 893
903 public void updateDragTypeRegistration () 894 public void updateDragTypeRegistration ()
904 { 895 {
905 OS.objc_msgSend(this.id, OS.sel_updateDragTypeRegistration); 896 OS.objc_msgSend(this.id_, OS.sel_updateDragTypeRegistration);
906 } 897 }
907 898
908 public void updateFontPanel () 899 public void updateFontPanel ()
909 { 900 {
910 OS.objc_msgSend(this.id, OS.sel_updateFontPanel); 901 OS.objc_msgSend(this.id_, OS.sel_updateFontPanel);
911 } 902 }
912 903
913 public void updateInsertionPointStateAndRestartTimer (bool restartFlag) 904 public void updateInsertionPointStateAndRestartTimer (bool restartFlag)
914 { 905 {
915 OS.objc_msgSend(this.id, OS.sel_updateInsertionPointStateAndRestartTimer_1, restartFlag); 906 OS.objc_msgSend(this.id_, OS.sel_updateInsertionPointStateAndRestartTimer_1, restartFlag);
916 } 907 }
917 908
918 public void updateRuler () 909 public void updateRuler ()
919 { 910 {
920 OS.objc_msgSend(this.id, OS.sel_updateRuler); 911 OS.objc_msgSend(this.id_, OS.sel_updateRuler);
921 } 912 }
922 913
923 public void useAllLigatures (id sender) 914 public void useAllLigatures (id sender)
924 { 915 {
925 OS.objc_msgSend(this.id, OS.sel_useAllLigatures_1, sender !is null ? sender.id : null); 916 OS.objc_msgSend(this.id_, OS.sel_useAllLigatures_1, sender !is null ? sender.id_ : null);
926 } 917 }
927 918
928 public void useStandardKerning (id sender) 919 public void useStandardKerning (id sender)
929 { 920 {
930 OS.objc_msgSend(this.id, OS.sel_useStandardKerning_1, sender !is null ? sender.id : null); 921 OS.objc_msgSend(this.id_, OS.sel_useStandardKerning_1, sender !is null ? sender.id_ : null);
931 } 922 }
932 923
933 public void useStandardLigatures (id sender) 924 public void useStandardLigatures (id sender)
934 { 925 {
935 OS.objc_msgSend(this.id, OS.sel_useStandardLigatures_1, sender !is null ? sender.id : null); 926 OS.objc_msgSend(this.id_, OS.sel_useStandardLigatures_1, sender !is null ? sender.id_ : null);
936 } 927 }
937 928
938 public bool usesFindPanel () 929 public bool usesFindPanel ()
939 { 930 {
940 return OS.objc_msgSend(this.id, OS.sel_usesFindPanel) !is null; 931 return OS.objc_msgSend(this.id_, OS.sel_usesFindPanel) !is null;
941 } 932 }
942 933
943 public bool usesFontPanel () 934 public bool usesFontPanel ()
944 { 935 {
945 return OS.objc_msgSend(this.id, OS.sel_usesFontPanel) !is null; 936 return OS.objc_msgSend(this.id_, OS.sel_usesFontPanel) !is null;
946 } 937 }
947 938
948 public bool usesRuler () 939 public bool usesRuler ()
949 { 940 {
950 return OS.objc_msgSend(this.id, OS.sel_usesRuler) !is null; 941 return OS.objc_msgSend(this.id_, OS.sel_usesRuler) !is null;
951 } 942 }
952 943
953 public id validRequestorForSendType (NSString sendType, NSString returnType) 944 public id validRequestorForSendType (NSString sendType, NSString returnType)
954 { 945 {
955 objc.id result = OS.objc_msgSend(this.id, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id : null, 946 objc.id result = OS.objc_msgSend(this.id_, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id_ : null,
956 returnType !is null ? returnType.id : null); 947 returnType !is null ? returnType.id_ : null);
957 return result !is null ? new id(result) : null; 948 return result !is null ? new id(result) : null;
958 } 949 }
959 950
960 public NSArray writablePasteboardTypes () 951 public NSArray writablePasteboardTypes ()
961 { 952 {
962 objc.id result = OS.objc_msgSend(this.id, OS.sel_writablePasteboardTypes); 953 objc.id result = OS.objc_msgSend(this.id_, OS.sel_writablePasteboardTypes);
963 return result !is null ? new NSArray(result) : null; 954 return result !is null ? new NSArray(result) : null;
964 } 955 }
965 956
966 public bool writeSelectionToPasteboard_type_ (NSPasteboard pboard, NSString type) 957 public bool writeSelectionToPasteboard_type_ (NSPasteboard pboard, NSString type)
967 { 958 {
968 return OS.objc_msgSend(this.id, OS.sel_writeSelectionToPasteboard_1type_1, pboard !is null ? pboard.id : null, type !is null ? type.id : null) !is null; 959 return OS.objc_msgSend(this.id_, OS.sel_writeSelectionToPasteboard_1type_1, pboard !is null ? pboard.id_ : null, type !is null ? type.id_ : null) !is null;
969 } 960 }
970 961
971 public bool writeSelectionToPasteboard_types_ (NSPasteboard pboard, NSArray types) 962 public bool writeSelectionToPasteboard_types_ (NSPasteboard pboard, NSArray types)
972 { 963 {
973 return OS.objc_msgSend(this.id, OS.sel_writeSelectionToPasteboard_1types_1, pboard !is null ? pboard.id : null, 964 return OS.objc_msgSend(this.id_, OS.sel_writeSelectionToPasteboard_1types_1, pboard !is null ? pboard.id_ : null,
974 types !is null ? types.id : null) !is null; 965 types !is null ? types.id_ : null) !is null;
975 } 966 }
976 967
977 } 968 }