comparison dwt/internal/cocoa/NSResponder.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
11 * Port to the D Programming language: 11 * Port to the D Programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com> 12 * Jacob Carlborg <jacob.carlborg@gmail.com>
13 *******************************************************************************/ 13 *******************************************************************************/
14 module dwt.internal.cocoa.NSResponder; 14 module dwt.internal.cocoa.NSResponder;
15 15
16 import dwt.internal.cocoa.id;
16 import dwt.internal.cocoa.NSArray; 17 import dwt.internal.cocoa.NSArray;
17 import dwt.internal.cocoa.NSError; 18 import dwt.internal.cocoa.NSError;
18 import dwt.internal.cocoa.NSEvent; 19 import dwt.internal.cocoa.NSEvent;
19 import dwt.internal.cocoa.NSInterfaceStyle; 20 import dwt.internal.cocoa.NSInterfaceStyle;
20 import dwt.internal.cocoa.NSMenu; 21 import dwt.internal.cocoa.NSMenu;
38 super(id); 39 super(id);
39 } 40 }
40 41
41 public bool acceptsFirstResponder () 42 public bool acceptsFirstResponder ()
42 { 43 {
43 return OS.objc_msgSend(this.id, OS.sel_acceptsFirstResponder) !is null; 44 return OS.objc_msgSend(this.id_, OS.sel_acceptsFirstResponder) !is null;
44 } 45 }
45 46
46 public bool becomeFirstResponder () 47 public bool becomeFirstResponder ()
47 { 48 {
48 return OS.objc_msgSend(this.id, OS.sel_becomeFirstResponder) !is null; 49 return OS.objc_msgSend(this.id_, OS.sel_becomeFirstResponder) !is null;
49 } 50 }
50 51
51 public void cancelOperation (id sender) 52 public void cancelOperation (id sender)
52 { 53 {
53 OS.objc_msgSend(this.id, OS.sel_cancelOperation_1, sender !is null ? sender.id : null); 54 OS.objc_msgSend(this.id_, OS.sel_cancelOperation_1, sender !is null ? sender.id_ : null);
54 } 55 }
55 56
56 public void capitalizeWord (id sender) 57 public void capitalizeWord (id sender)
57 { 58 {
58 OS.objc_msgSend(this.id, OS.sel_capitalizeWord_1, sender !is null ? sender.id : null); 59 OS.objc_msgSend(this.id_, OS.sel_capitalizeWord_1, sender !is null ? sender.id_ : null);
59 } 60 }
60 61
61 public void centerSelectionInVisibleArea (id sender) 62 public void centerSelectionInVisibleArea (id sender)
62 { 63 {
63 OS.objc_msgSend(this.id, OS.sel_centerSelectionInVisibleArea_1, sender !is null ? sender.id : null); 64 OS.objc_msgSend(this.id_, OS.sel_centerSelectionInVisibleArea_1, sender !is null ? sender.id_ : null);
64 } 65 }
65 66
66 public void changeCaseOfLetter (id sender) 67 public void changeCaseOfLetter (id sender)
67 { 68 {
68 OS.objc_msgSend(this.id, OS.sel_changeCaseOfLetter_1, sender !is null ? sender.id : null); 69 OS.objc_msgSend(this.id_, OS.sel_changeCaseOfLetter_1, sender !is null ? sender.id_ : null);
69 } 70 }
70 71
71 public void complete (id sender) 72 public void complete (id sender)
72 { 73 {
73 OS.objc_msgSend(this.id, OS.sel_complete_1, sender !is null ? sender.id : null); 74 OS.objc_msgSend(this.id_, OS.sel_complete_1, sender !is null ? sender.id_ : null);
74 } 75 }
75 76
76 public void cursorUpdate (NSEvent event) 77 public void cursorUpdate (NSEvent event)
77 { 78 {
78 OS.objc_msgSend(this.id, OS.sel_cursorUpdate_1, event !is null ? event.id : null); 79 OS.objc_msgSend(this.id_, OS.sel_cursorUpdate_1, event !is null ? event.id_ : null);
79 } 80 }
80 81
81 public void deleteBackward (id sender) 82 public void deleteBackward (id sender)
82 { 83 {
83 OS.objc_msgSend(this.id, OS.sel_deleteBackward_1, sender !is null ? sender.id : null); 84 OS.objc_msgSend(this.id_, OS.sel_deleteBackward_1, sender !is null ? sender.id_ : null);
84 } 85 }
85 86
86 public void deleteBackwardByDecomposingPreviousCharacter (id sender) 87 public void deleteBackwardByDecomposingPreviousCharacter (id sender)
87 { 88 {
88 OS.objc_msgSend(this.id, OS.sel_deleteBackwardByDecomposingPreviousCharacter_1, sender !is null ? sender.id : null); 89 OS.objc_msgSend(this.id_, OS.sel_deleteBackwardByDecomposingPreviousCharacter_1, sender !is null ? sender.id_ : null);
89 } 90 }
90 91
91 public void deleteForward (id sender) 92 public void deleteForward (id sender)
92 { 93 {
93 OS.objc_msgSend(this.id, OS.sel_deleteForward_1, sender !is null ? sender.id : null); 94 OS.objc_msgSend(this.id_, OS.sel_deleteForward_1, sender !is null ? sender.id_ : null);
94 } 95 }
95 96
96 public void deleteToBeginningOfLine (id sender) 97 public void deleteToBeginningOfLine (id sender)
97 { 98 {
98 OS.objc_msgSend(this.id, OS.sel_deleteToBeginningOfLine_1, sender !is null ? sender.id : null); 99 OS.objc_msgSend(this.id_, OS.sel_deleteToBeginningOfLine_1, sender !is null ? sender.id_ : null);
99 } 100 }
100 101
101 public void deleteToBeginningOfParagraph (id sender) 102 public void deleteToBeginningOfParagraph (id sender)
102 { 103 {
103 OS.objc_msgSend(this.id, OS.sel_deleteToBeginningOfParagraph_1, sender !is null ? sender.id : null); 104 OS.objc_msgSend(this.id_, OS.sel_deleteToBeginningOfParagraph_1, sender !is null ? sender.id_ : null);
104 } 105 }
105 106
106 public void deleteToEndOfLine (id sender) 107 public void deleteToEndOfLine (id sender)
107 { 108 {
108 OS.objc_msgSend(this.id, OS.sel_deleteToEndOfLine_1, sender !is null ? sender.id : null); 109 OS.objc_msgSend(this.id_, OS.sel_deleteToEndOfLine_1, sender !is null ? sender.id_ : null);
109 } 110 }
110 111
111 public void deleteToEndOfParagraph (id sender) 112 public void deleteToEndOfParagraph (id sender)
112 { 113 {
113 OS.objc_msgSend(this.id, OS.sel_deleteToEndOfParagraph_1, sender !is null ? sender.id : null); 114 OS.objc_msgSend(this.id_, OS.sel_deleteToEndOfParagraph_1, sender !is null ? sender.id_ : null);
114 } 115 }
115 116
116 public void deleteToMark (id sender) 117 public void deleteToMark (id sender)
117 { 118 {
118 OS.objc_msgSend(this.id, OS.sel_deleteToMark_1, sender !is null ? sender.id : null); 119 OS.objc_msgSend(this.id_, OS.sel_deleteToMark_1, sender !is null ? sender.id_ : null);
119 } 120 }
120 121
121 public void deleteWordBackward (id sender) 122 public void deleteWordBackward (id sender)
122 { 123 {
123 OS.objc_msgSend(this.id, OS.sel_deleteWordBackward_1, sender !is null ? sender.id : null); 124 OS.objc_msgSend(this.id_, OS.sel_deleteWordBackward_1, sender !is null ? sender.id_ : null);
124 } 125 }
125 126
126 public void deleteWordForward (id sender) 127 public void deleteWordForward (id sender)
127 { 128 {
128 OS.objc_msgSend(this.id, OS.sel_deleteWordForward_1, sender !is null ? sender.id : null); 129 OS.objc_msgSend(this.id_, OS.sel_deleteWordForward_1, sender !is null ? sender.id_ : null);
129 } 130 }
130 131
131 public void doCommandBySelector (objc.SEL aSelector) 132 public void doCommandBySelector (objc.SEL aSelector)
132 { 133 {
133 OS.objc_msgSend(this.id, OS.sel_doCommandBySelector_1, aSelector); 134 OS.objc_msgSend(this.id_, OS.sel_doCommandBySelector_1, aSelector);
134 } 135 }
135 136
136 public void flagsChanged (NSEvent theEvent) 137 public void flagsChanged (NSEvent theEvent)
137 { 138 {
138 OS.objc_msgSend(this.id, OS.sel_flagsChanged_1, theEvent !is null ? theEvent.id : null); 139 OS.objc_msgSend(this.id_, OS.sel_flagsChanged_1, theEvent !is null ? theEvent.id_ : null);
139 } 140 }
140 141
141 public void flushBufferedKeyEvents () 142 public void flushBufferedKeyEvents ()
142 { 143 {
143 OS.objc_msgSend(this.id, OS.sel_flushBufferedKeyEvents); 144 OS.objc_msgSend(this.id_, OS.sel_flushBufferedKeyEvents);
144 } 145 }
145 146
146 public void helpRequested (NSEvent eventPtr) 147 public void helpRequested (NSEvent eventPtr)
147 { 148 {
148 OS.objc_msgSend(this.id, OS.sel_helpRequested_1, eventPtr !is null ? eventPtr.id : null); 149 OS.objc_msgSend(this.id_, OS.sel_helpRequested_1, eventPtr !is null ? eventPtr.id_ : null);
149 } 150 }
150 151
151 public void indent (id sender) 152 public void indent (id sender)
152 { 153 {
153 OS.objc_msgSend(this.id, OS.sel_indent_1, sender !is null ? sender.id : null); 154 OS.objc_msgSend(this.id_, OS.sel_indent_1, sender !is null ? sender.id_ : null);
154 } 155 }
155 156
156 public void insertBacktab (id sender) 157 public void insertBacktab (id sender)
157 { 158 {
158 OS.objc_msgSend(this.id, OS.sel_insertBacktab_1, sender !is null ? sender.id : null); 159 OS.objc_msgSend(this.id_, OS.sel_insertBacktab_1, sender !is null ? sender.id_ : null);
159 } 160 }
160 161
161 public void insertContainerBreak (id sender) 162 public void insertContainerBreak (id sender)
162 { 163 {
163 OS.objc_msgSend(this.id, OS.sel_insertContainerBreak_1, sender !is null ? sender.id : null); 164 OS.objc_msgSend(this.id_, OS.sel_insertContainerBreak_1, sender !is null ? sender.id_ : null);
164 } 165 }
165 166
166 public void insertLineBreak (id sender) 167 public void insertLineBreak (id sender)
167 { 168 {
168 OS.objc_msgSend(this.id, OS.sel_insertLineBreak_1, sender !is null ? sender.id : null); 169 OS.objc_msgSend(this.id_, OS.sel_insertLineBreak_1, sender !is null ? sender.id_ : null);
169 } 170 }
170 171
171 public void insertNewline (id sender) 172 public void insertNewline (id sender)
172 { 173 {
173 OS.objc_msgSend(this.id, OS.sel_insertNewline_1, sender !is null ? sender.id : null); 174 OS.objc_msgSend(this.id_, OS.sel_insertNewline_1, sender !is null ? sender.id_ : null);
174 } 175 }
175 176
176 public void insertNewlineIgnoringFieldEditor (id sender) 177 public void insertNewlineIgnoringFieldEditor (id sender)
177 { 178 {
178 OS.objc_msgSend(this.id, OS.sel_insertNewlineIgnoringFieldEditor_1, sender !is null ? sender.id : null); 179 OS.objc_msgSend(this.id_, OS.sel_insertNewlineIgnoringFieldEditor_1, sender !is null ? sender.id_ : null);
179 } 180 }
180 181
181 public void insertParagraphSeparator (id sender) 182 public void insertParagraphSeparator (id sender)
182 { 183 {
183 OS.objc_msgSend(this.id, OS.sel_insertParagraphSeparator_1, sender !is null ? sender.id : null); 184 OS.objc_msgSend(this.id_, OS.sel_insertParagraphSeparator_1, sender !is null ? sender.id_ : null);
184 } 185 }
185 186
186 public void insertTab (id sender) 187 public void insertTab (id sender)
187 { 188 {
188 OS.objc_msgSend(this.id, OS.sel_insertTab_1, sender !is null ? sender.id : null); 189 OS.objc_msgSend(this.id_, OS.sel_insertTab_1, sender !is null ? sender.id_ : null);
189 } 190 }
190 191
191 public void insertTabIgnoringFieldEditor (id sender) 192 public void insertTabIgnoringFieldEditor (id sender)
192 { 193 {
193 OS.objc_msgSend(this.id, OS.sel_insertTabIgnoringFieldEditor_1, sender !is null ? sender.id : null); 194 OS.objc_msgSend(this.id_, OS.sel_insertTabIgnoringFieldEditor_1, sender !is null ? sender.id_ : null);
194 } 195 }
195 196
196 public void insertText (id insertString) 197 public void insertText (id insertString)
197 { 198 {
198 OS.objc_msgSend(this.id, OS.sel_insertText_1, insertString !is null ? insertString.id : null); 199 OS.objc_msgSend(this.id_, OS.sel_insertText_1, insertString !is null ? insertString.id_ : null);
199 } 200 }
200 201
201 public NSInterfaceStyle interfaceStyle () 202 public NSInterfaceStyle interfaceStyle ()
202 { 203 {
203 return cast(NSInterfaceStyle) OS.objc_msgSend(this.id, OS.sel_interfaceStyle); 204 return cast(NSInterfaceStyle) OS.objc_msgSend(this.id_, OS.sel_interfaceStyle);
204 } 205 }
205 206
206 public void interpretKeyEvents (NSArray eventArray) 207 public void interpretKeyEvents (NSArray eventArray)
207 { 208 {
208 OS.objc_msgSend(this.id, OS.sel_interpretKeyEvents_1, eventArray !is null ? eventArray.id : null); 209 OS.objc_msgSend(this.id_, OS.sel_interpretKeyEvents_1, eventArray !is null ? eventArray.id_ : null);
209 } 210 }
210 211
211 public void keyDown (NSEvent theEvent) 212 public void keyDown (NSEvent theEvent)
212 { 213 {
213 OS.objc_msgSend(this.id, OS.sel_keyDown_1, theEvent !is null ? theEvent.id : null); 214 OS.objc_msgSend(this.id_, OS.sel_keyDown_1, theEvent !is null ? theEvent.id_ : null);
214 } 215 }
215 216
216 public void keyUp (NSEvent theEvent) 217 public void keyUp (NSEvent theEvent)
217 { 218 {
218 OS.objc_msgSend(this.id, OS.sel_keyUp_1, theEvent !is null ? theEvent.id : null); 219 OS.objc_msgSend(this.id_, OS.sel_keyUp_1, theEvent !is null ? theEvent.id_ : null);
219 } 220 }
220 221
221 public void lowercaseWord (id sender) 222 public void lowercaseWord (id sender)
222 { 223 {
223 OS.objc_msgSend(this.id, OS.sel_lowercaseWord_1, sender !is null ? sender.id : null); 224 OS.objc_msgSend(this.id_, OS.sel_lowercaseWord_1, sender !is null ? sender.id_ : null);
224 } 225 }
225 226
226 public NSMenu menu () 227 public NSMenu menu ()
227 { 228 {
228 objc.id result = OS.objc_msgSend(this.id, OS.sel_menu); 229 objc.id result = OS.objc_msgSend(this.id_, OS.sel_menu);
229 return result !is null ? new NSMenu(result) : null; 230 return result !is null ? new NSMenu(result) : null;
230 } 231 }
231 232
232 public void mouseDown (NSEvent theEvent) 233 public void mouseDown (NSEvent theEvent)
233 { 234 {
234 OS.objc_msgSend(this.id, OS.sel_mouseDown_1, theEvent !is null ? theEvent.id : null); 235 OS.objc_msgSend(this.id_, OS.sel_mouseDown_1, theEvent !is null ? theEvent.id_ : null);
235 } 236 }
236 237
237 public void mouseDragged (NSEvent theEvent) 238 public void mouseDragged (NSEvent theEvent)
238 { 239 {
239 OS.objc_msgSend(this.id, OS.sel_mouseDragged_1, theEvent !is null ? theEvent.id : null); 240 OS.objc_msgSend(this.id_, OS.sel_mouseDragged_1, theEvent !is null ? theEvent.id_ : null);
240 } 241 }
241 242
242 public void mouseEntered (NSEvent theEvent) 243 public void mouseEntered (NSEvent theEvent)
243 { 244 {
244 OS.objc_msgSend(this.id, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id : null); 245 OS.objc_msgSend(this.id_, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id_ : null);
245 } 246 }
246 247
247 public void mouseExited (NSEvent theEvent) 248 public void mouseExited (NSEvent theEvent)
248 { 249 {
249 OS.objc_msgSend(this.id, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id : null); 250 OS.objc_msgSend(this.id_, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id_ : null);
250 } 251 }
251 252
252 public void mouseMoved (NSEvent theEvent) 253 public void mouseMoved (NSEvent theEvent)
253 { 254 {
254 OS.objc_msgSend(this.id, OS.sel_mouseMoved_1, theEvent !is null ? theEvent.id : null); 255 OS.objc_msgSend(this.id_, OS.sel_mouseMoved_1, theEvent !is null ? theEvent.id_ : null);
255 } 256 }
256 257
257 public void mouseUp (NSEvent theEvent) 258 public void mouseUp (NSEvent theEvent)
258 { 259 {
259 OS.objc_msgSend(this.id, OS.sel_mouseUp_1, theEvent !is null ? theEvent.id : null); 260 OS.objc_msgSend(this.id_, OS.sel_mouseUp_1, theEvent !is null ? theEvent.id_ : null);
260 } 261 }
261 262
262 public void moveBackward (id sender) 263 public void moveBackward (id sender)
263 { 264 {
264 OS.objc_msgSend(this.id, OS.sel_moveBackward_1, sender !is null ? sender.id : null); 265 OS.objc_msgSend(this.id_, OS.sel_moveBackward_1, sender !is null ? sender.id_ : null);
265 } 266 }
266 267
267 public void moveBackwardAndModifySelection (id sender) 268 public void moveBackwardAndModifySelection (id sender)
268 { 269 {
269 OS.objc_msgSend(this.id, OS.sel_moveBackwardAndModifySelection_1, sender !is null ? sender.id : null); 270 OS.objc_msgSend(this.id_, OS.sel_moveBackwardAndModifySelection_1, sender !is null ? sender.id_ : null);
270 } 271 }
271 272
272 public void moveDown (id sender) 273 public void moveDown (id sender)
273 { 274 {
274 OS.objc_msgSend(this.id, OS.sel_moveDown_1, sender !is null ? sender.id : null); 275 OS.objc_msgSend(this.id_, OS.sel_moveDown_1, sender !is null ? sender.id_ : null);
275 } 276 }
276 277
277 public void moveDownAndModifySelection (id sender) 278 public void moveDownAndModifySelection (id sender)
278 { 279 {
279 OS.objc_msgSend(this.id, OS.sel_moveDownAndModifySelection_1, sender !is null ? sender.id : null); 280 OS.objc_msgSend(this.id_, OS.sel_moveDownAndModifySelection_1, sender !is null ? sender.id_ : null);
280 } 281 }
281 282
282 public void moveForward (id sender) 283 public void moveForward (id sender)
283 { 284 {
284 OS.objc_msgSend(this.id, OS.sel_moveForward_1, sender !is null ? sender.id : null); 285 OS.objc_msgSend(this.id_, OS.sel_moveForward_1, sender !is null ? sender.id_ : null);
285 } 286 }
286 287
287 public void moveForwardAndModifySelection (id sender) 288 public void moveForwardAndModifySelection (id sender)
288 { 289 {
289 OS.objc_msgSend(this.id, OS.sel_moveForwardAndModifySelection_1, sender !is null ? sender.id : null); 290 OS.objc_msgSend(this.id_, OS.sel_moveForwardAndModifySelection_1, sender !is null ? sender.id_ : null);
290 } 291 }
291 292
292 public void moveLeft (id sender) 293 public void moveLeft (id sender)
293 { 294 {
294 OS.objc_msgSend(this.id, OS.sel_moveLeft_1, sender !is null ? sender.id : null); 295 OS.objc_msgSend(this.id_, OS.sel_moveLeft_1, sender !is null ? sender.id_ : null);
295 } 296 }
296 297
297 public void moveLeftAndModifySelection (id sender) 298 public void moveLeftAndModifySelection (id sender)
298 { 299 {
299 OS.objc_msgSend(this.id, OS.sel_moveLeftAndModifySelection_1, sender !is null ? sender.id : null); 300 OS.objc_msgSend(this.id_, OS.sel_moveLeftAndModifySelection_1, sender !is null ? sender.id_ : null);
300 } 301 }
301 302
302 public void moveRight (id sender) 303 public void moveRight (id sender)
303 { 304 {
304 OS.objc_msgSend(this.id, OS.sel_moveRight_1, sender !is null ? sender.id : null); 305 OS.objc_msgSend(this.id_, OS.sel_moveRight_1, sender !is null ? sender.id_ : null);
305 } 306 }
306 307
307 public void moveRightAndModifySelection (id sender) 308 public void moveRightAndModifySelection (id sender)
308 { 309 {
309 OS.objc_msgSend(this.id, OS.sel_moveRightAndModifySelection_1, sender !is null ? sender.id : null); 310 OS.objc_msgSend(this.id_, OS.sel_moveRightAndModifySelection_1, sender !is null ? sender.id_ : null);
310 } 311 }
311 312
312 public void moveToBeginningOfDocument (id sender) 313 public void moveToBeginningOfDocument (id sender)
313 { 314 {
314 OS.objc_msgSend(this.id, OS.sel_moveToBeginningOfDocument_1, sender !is null ? sender.id : null); 315 OS.objc_msgSend(this.id_, OS.sel_moveToBeginningOfDocument_1, sender !is null ? sender.id_ : null);
315 } 316 }
316 317
317 public void moveToBeginningOfLine (id sender) 318 public void moveToBeginningOfLine (id sender)
318 { 319 {
319 OS.objc_msgSend(this.id, OS.sel_moveToBeginningOfLine_1, sender !is null ? sender.id : null); 320 OS.objc_msgSend(this.id_, OS.sel_moveToBeginningOfLine_1, sender !is null ? sender.id_ : null);
320 } 321 }
321 322
322 public void moveToBeginningOfParagraph (id sender) 323 public void moveToBeginningOfParagraph (id sender)
323 { 324 {
324 OS.objc_msgSend(this.id, OS.sel_moveToBeginningOfParagraph_1, sender !is null ? sender.id : null); 325 OS.objc_msgSend(this.id_, OS.sel_moveToBeginningOfParagraph_1, sender !is null ? sender.id_ : null);
325 } 326 }
326 327
327 public void moveToEndOfDocument (id sender) 328 public void moveToEndOfDocument (id sender)
328 { 329 {
329 OS.objc_msgSend(this.id, OS.sel_moveToEndOfDocument_1, sender !is null ? sender.id : null); 330 OS.objc_msgSend(this.id_, OS.sel_moveToEndOfDocument_1, sender !is null ? sender.id_ : null);
330 } 331 }
331 332
332 public void moveToEndOfLine (id sender) 333 public void moveToEndOfLine (id sender)
333 { 334 {
334 OS.objc_msgSend(this.id, OS.sel_moveToEndOfLine_1, sender !is null ? sender.id : null); 335 OS.objc_msgSend(this.id_, OS.sel_moveToEndOfLine_1, sender !is null ? sender.id_ : null);
335 } 336 }
336 337
337 public void moveToEndOfParagraph (id sender) 338 public void moveToEndOfParagraph (id sender)
338 { 339 {
339 OS.objc_msgSend(this.id, OS.sel_moveToEndOfParagraph_1, sender !is null ? sender.id : null); 340 OS.objc_msgSend(this.id_, OS.sel_moveToEndOfParagraph_1, sender !is null ? sender.id_ : null);
340 } 341 }
341 342
342 public void moveUp (id sender) 343 public void moveUp (id sender)
343 { 344 {
344 OS.objc_msgSend(this.id, OS.sel_moveUp_1, sender !is null ? sender.id : null); 345 OS.objc_msgSend(this.id_, OS.sel_moveUp_1, sender !is null ? sender.id_ : null);
345 } 346 }
346 347
347 public void moveUpAndModifySelection (id sender) 348 public void moveUpAndModifySelection (id sender)
348 { 349 {
349 OS.objc_msgSend(this.id, OS.sel_moveUpAndModifySelection_1, sender !is null ? sender.id : null); 350 OS.objc_msgSend(this.id_, OS.sel_moveUpAndModifySelection_1, sender !is null ? sender.id_ : null);
350 } 351 }
351 352
352 public void moveWordBackward (id sender) 353 public void moveWordBackward (id sender)
353 { 354 {
354 OS.objc_msgSend(this.id, OS.sel_moveWordBackward_1, sender !is null ? sender.id : null); 355 OS.objc_msgSend(this.id_, OS.sel_moveWordBackward_1, sender !is null ? sender.id_ : null);
355 } 356 }
356 357
357 public void moveWordBackwardAndModifySelection (id sender) 358 public void moveWordBackwardAndModifySelection (id sender)
358 { 359 {
359 OS.objc_msgSend(this.id, OS.sel_moveWordBackwardAndModifySelection_1, sender !is null ? sender.id : null); 360 OS.objc_msgSend(this.id_, OS.sel_moveWordBackwardAndModifySelection_1, sender !is null ? sender.id_ : null);
360 } 361 }
361 362
362 public void moveWordForward (id sender) 363 public void moveWordForward (id sender)
363 { 364 {
364 OS.objc_msgSend(this.id, OS.sel_moveWordForward_1, sender !is null ? sender.id : null); 365 OS.objc_msgSend(this.id_, OS.sel_moveWordForward_1, sender !is null ? sender.id_ : null);
365 } 366 }
366 367
367 public void moveWordForwardAndModifySelection (id sender) 368 public void moveWordForwardAndModifySelection (id sender)
368 { 369 {
369 OS.objc_msgSend(this.id, OS.sel_moveWordForwardAndModifySelection_1, sender !is null ? sender.id : null); 370 OS.objc_msgSend(this.id_, OS.sel_moveWordForwardAndModifySelection_1, sender !is null ? sender.id_ : null);
370 } 371 }
371 372
372 public void moveWordLeft (id sender) 373 public void moveWordLeft (id sender)
373 { 374 {
374 OS.objc_msgSend(this.id, OS.sel_moveWordLeft_1, sender !is null ? sender.id : null); 375 OS.objc_msgSend(this.id_, OS.sel_moveWordLeft_1, sender !is null ? sender.id_ : null);
375 } 376 }
376 377
377 public void moveWordLeftAndModifySelection (id sender) 378 public void moveWordLeftAndModifySelection (id sender)
378 { 379 {
379 OS.objc_msgSend(this.id, OS.sel_moveWordLeftAndModifySelection_1, sender !is null ? sender.id : null); 380 OS.objc_msgSend(this.id_, OS.sel_moveWordLeftAndModifySelection_1, sender !is null ? sender.id_ : null);
380 } 381 }
381 382
382 public void moveWordRight (id sender) 383 public void moveWordRight (id sender)
383 { 384 {
384 OS.objc_msgSend(this.id, OS.sel_moveWordRight_1, sender !is null ? sender.id : null); 385 OS.objc_msgSend(this.id_, OS.sel_moveWordRight_1, sender !is null ? sender.id_ : null);
385 } 386 }
386 387
387 public void moveWordRightAndModifySelection (id sender) 388 public void moveWordRightAndModifySelection (id sender)
388 { 389 {
389 OS.objc_msgSend(this.id, OS.sel_moveWordRightAndModifySelection_1, sender !is null ? sender.id : null); 390 OS.objc_msgSend(this.id_, OS.sel_moveWordRightAndModifySelection_1, sender !is null ? sender.id_ : null);
390 } 391 }
391 392
392 public NSResponder nextResponder () 393 public NSResponder nextResponder ()
393 { 394 {
394 objc.id result = OS.objc_msgSend(this.id, OS.sel_nextResponder); 395 objc.id result = OS.objc_msgSend(this.id_, OS.sel_nextResponder);
395 return result is this.id ? this : (result !is null ? new NSResponder(result) : null); 396 return result is this.id_ ? this : (result !is null ? new NSResponder(result) : null);
396 } 397 }
397 398
398 public void noResponderFor (objc.SEL eventSelector) 399 public void noResponderFor (objc.SEL eventSelector)
399 { 400 {
400 OS.objc_msgSend(this.id, OS.sel_noResponderFor_1, eventSelector); 401 OS.objc_msgSend(this.id_, OS.sel_noResponderFor_1, eventSelector);
401 } 402 }
402 403
403 public void otherMouseDown (NSEvent theEvent) 404 public void otherMouseDown (NSEvent theEvent)
404 { 405 {
405 OS.objc_msgSend(this.id, OS.sel_otherMouseDown_1, theEvent !is null ? theEvent.id : null); 406 OS.objc_msgSend(this.id_, OS.sel_otherMouseDown_1, theEvent !is null ? theEvent.id_ : null);
406 } 407 }
407 408
408 public void otherMouseDragged (NSEvent theEvent) 409 public void otherMouseDragged (NSEvent theEvent)
409 { 410 {
410 OS.objc_msgSend(this.id, OS.sel_otherMouseDragged_1, theEvent !is null ? theEvent.id : null); 411 OS.objc_msgSend(this.id_, OS.sel_otherMouseDragged_1, theEvent !is null ? theEvent.id_ : null);
411 } 412 }
412 413
413 public void otherMouseUp (NSEvent theEvent) 414 public void otherMouseUp (NSEvent theEvent)
414 { 415 {
415 OS.objc_msgSend(this.id, OS.sel_otherMouseUp_1, theEvent !is null ? theEvent.id : null); 416 OS.objc_msgSend(this.id_, OS.sel_otherMouseUp_1, theEvent !is null ? theEvent.id_ : null);
416 } 417 }
417 418
418 public void pageDown (id sender) 419 public void pageDown (id sender)
419 { 420 {
420 OS.objc_msgSend(this.id, OS.sel_pageDown_1, sender !is null ? sender.id : null); 421 OS.objc_msgSend(this.id_, OS.sel_pageDown_1, sender !is null ? sender.id_ : null);
421 } 422 }
422 423
423 public void pageUp (id sender) 424 public void pageUp (id sender)
424 { 425 {
425 OS.objc_msgSend(this.id, OS.sel_pageUp_1, sender !is null ? sender.id : null); 426 OS.objc_msgSend(this.id_, OS.sel_pageUp_1, sender !is null ? sender.id_ : null);
426 } 427 }
427 428
428 public bool performKeyEquivalent (NSEvent theEvent) 429 public bool performKeyEquivalent (NSEvent theEvent)
429 { 430 {
430 return OS.objc_msgSend(this.id, OS.sel_performKeyEquivalent_1, theEvent !is null ? theEvent.id : null) !is null; 431 return OS.objc_msgSend(this.id_, OS.sel_performKeyEquivalent_1, theEvent !is null ? theEvent.id_ : null) !is null;
431 } 432 }
432 433
433 public bool performMnemonic (NSString theString) 434 public bool performMnemonic (NSString theString)
434 { 435 {
435 return OS.objc_msgSend(this.id, OS.sel_performMnemonic_1, theString !is null ? theString.id : null) !is null; 436 return OS.objc_msgSend(this.id_, OS.sel_performMnemonic_1, theString !is null ? theString.id_ : null) !is null;
436 } 437 }
437 438
438 public bool presentError_ (NSError error) 439 public bool presentError_ (NSError error)
439 { 440 {
440 return OS.objc_msgSend(this.id, OS.sel_presentError_1, error !is null ? error.id : null) !is null; 441 return OS.objc_msgSend(this.id_, OS.sel_presentError_1, error !is null ? error.id_ : null) !is null;
441 } 442 }
442 443
443 public void presentError_modalForWindow_delegate_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee, 444 public void presentError_modalForWindow_delegate_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee,
444 objc.SEL didPresentSelector, void* contextInfo) 445 objc.SEL didPresentSelector, void* contextInfo)
445 { 446 {
446 OS.objc_msgSend(this.id, OS.sel_presentError_1modalForWindow_1delegate_1didPresentSelector_1contextInfo_1, error !is null ? error.id : null, 447 OS.objc_msgSend(this.id_, OS.sel_presentError_1modalForWindow_1delegate_1didPresentSelector_1contextInfo_1, error !is null ? error.id_ : null,
447 window !is null ? window.id : null, delegatee !is null ? delegatee.id : null, didPresentSelector, contextInfo); 448 window !is null ? window.id_ : null, delegatee !is null ? delegatee.id_ : null, didPresentSelector, contextInfo);
448 } 449 }
449 450
450 public bool resignFirstResponder () 451 public bool resignFirstResponder ()
451 { 452 {
452 return OS.objc_msgSend(this.id, OS.sel_resignFirstResponder) !is null; 453 return OS.objc_msgSend(this.id_, OS.sel_resignFirstResponder) !is null;
453 } 454 }
454 455
455 public void rightMouseDown (NSEvent theEvent) 456 public void rightMouseDown (NSEvent theEvent)
456 { 457 {
457 OS.objc_msgSend(this.id, OS.sel_rightMouseDown_1, theEvent !is null ? theEvent.id : null); 458 OS.objc_msgSend(this.id_, OS.sel_rightMouseDown_1, theEvent !is null ? theEvent.id_ : null);
458 } 459 }
459 460
460 public void rightMouseDragged (NSEvent theEvent) 461 public void rightMouseDragged (NSEvent theEvent)
461 { 462 {
462 OS.objc_msgSend(this.id, OS.sel_rightMouseDragged_1, theEvent !is null ? theEvent.id : null); 463 OS.objc_msgSend(this.id_, OS.sel_rightMouseDragged_1, theEvent !is null ? theEvent.id_ : null);
463 } 464 }
464 465
465 public void rightMouseUp (NSEvent theEvent) 466 public void rightMouseUp (NSEvent theEvent)
466 { 467 {
467 OS.objc_msgSend(this.id, OS.sel_rightMouseUp_1, theEvent !is null ? theEvent.id : null); 468 OS.objc_msgSend(this.id_, OS.sel_rightMouseUp_1, theEvent !is null ? theEvent.id_ : null);
468 } 469 }
469 470
470 public void scrollLineDown (id sender) 471 public void scrollLineDown (id sender)
471 { 472 {
472 OS.objc_msgSend(this.id, OS.sel_scrollLineDown_1, sender !is null ? sender.id : null); 473 OS.objc_msgSend(this.id_, OS.sel_scrollLineDown_1, sender !is null ? sender.id_ : null);
473 } 474 }
474 475
475 public void scrollLineUp (id sender) 476 public void scrollLineUp (id sender)
476 { 477 {
477 OS.objc_msgSend(this.id, OS.sel_scrollLineUp_1, sender !is null ? sender.id : null); 478 OS.objc_msgSend(this.id_, OS.sel_scrollLineUp_1, sender !is null ? sender.id_ : null);
478 } 479 }
479 480
480 public void scrollPageDown (id sender) 481 public void scrollPageDown (id sender)
481 { 482 {
482 OS.objc_msgSend(this.id, OS.sel_scrollPageDown_1, sender !is null ? sender.id : null); 483 OS.objc_msgSend(this.id_, OS.sel_scrollPageDown_1, sender !is null ? sender.id_ : null);
483 } 484 }
484 485
485 public void scrollPageUp (id sender) 486 public void scrollPageUp (id sender)
486 { 487 {
487 OS.objc_msgSend(this.id, OS.sel_scrollPageUp_1, sender !is null ? sender.id : null); 488 OS.objc_msgSend(this.id_, OS.sel_scrollPageUp_1, sender !is null ? sender.id_ : null);
488 } 489 }
489 490
490 public void scrollWheel (NSEvent theEvent) 491 public void scrollWheel (NSEvent theEvent)
491 { 492 {
492 OS.objc_msgSend(this.id, OS.sel_scrollWheel_1, theEvent !is null ? theEvent.id : null); 493 OS.objc_msgSend(this.id_, OS.sel_scrollWheel_1, theEvent !is null ? theEvent.id_ : null);
493 } 494 }
494 495
495 public void selectAll (id sender) 496 public void selectAll (id sender)
496 { 497 {
497 OS.objc_msgSend(this.id, OS.sel_selectAll_1, sender !is null ? sender.id : null); 498 OS.objc_msgSend(this.id_, OS.sel_selectAll_1, sender !is null ? sender.id_ : null);
498 } 499 }
499 500
500 public void selectLine (id sender) 501 public void selectLine (id sender)
501 { 502 {
502 OS.objc_msgSend(this.id, OS.sel_selectLine_1, sender !is null ? sender.id : null); 503 OS.objc_msgSend(this.id_, OS.sel_selectLine_1, sender !is null ? sender.id_ : null);
503 } 504 }
504 505
505 public void selectParagraph (id sender) 506 public void selectParagraph (id sender)
506 { 507 {
507 OS.objc_msgSend(this.id, OS.sel_selectParagraph_1, sender !is null ? sender.id : null); 508 OS.objc_msgSend(this.id_, OS.sel_selectParagraph_1, sender !is null ? sender.id_ : null);
508 } 509 }
509 510
510 public void selectToMark (id sender) 511 public void selectToMark (id sender)
511 { 512 {
512 OS.objc_msgSend(this.id, OS.sel_selectToMark_1, sender !is null ? sender.id : null); 513 OS.objc_msgSend(this.id_, OS.sel_selectToMark_1, sender !is null ? sender.id_ : null);
513 } 514 }
514 515
515 public void selectWord (id sender) 516 public void selectWord (id sender)
516 { 517 {
517 OS.objc_msgSend(this.id, OS.sel_selectWord_1, sender !is null ? sender.id : null); 518 OS.objc_msgSend(this.id_, OS.sel_selectWord_1, sender !is null ? sender.id_ : null);
518 } 519 }
519 520
520 public void setInterfaceStyle (NSInterfaceStyle interfaceStyle) 521 public void setInterfaceStyle (NSInterfaceStyle interfaceStyle)
521 { 522 {
522 OS.objc_msgSend(this.id, OS.sel_setInterfaceStyle_1, interfaceStyle); 523 OS.objc_msgSend(this.id_, OS.sel_setInterfaceStyle_1, interfaceStyle);
523 } 524 }
524 525
525 public void setMark (id sender) 526 public void setMark (id sender)
526 { 527 {
527 OS.objc_msgSend(this.id, OS.sel_setMark_1, sender !is null ? sender.id : null); 528 OS.objc_msgSend(this.id_, OS.sel_setMark_1, sender !is null ? sender.id_ : null);
528 } 529 }
529 530
530 public void setMenu (NSMenu menu) 531 public void setMenu (NSMenu menu)
531 { 532 {
532 OS.objc_msgSend(this.id, OS.sel_setMenu_1, menu !is null ? menu.id : null); 533 OS.objc_msgSend(this.id_, OS.sel_setMenu_1, menu !is null ? menu.id_ : null);
533 } 534 }
534 535
535 public void setNextResponder (NSResponder aResponder) 536 public void setNextResponder (NSResponder aResponder)
536 { 537 {
537 OS.objc_msgSend(this.id, OS.sel_setNextResponder_1, aResponder !is null ? aResponder.id : null); 538 OS.objc_msgSend(this.id_, OS.sel_setNextResponder_1, aResponder !is null ? aResponder.id_ : null);
538 } 539 }
539 540
540 public bool shouldBeTreatedAsInkEvent (NSEvent theEvent) 541 public bool shouldBeTreatedAsInkEvent (NSEvent theEvent)
541 { 542 {
542 return OS.objc_msgSend(this.id, OS.sel_shouldBeTreatedAsInkEvent_1, theEvent !is null ? theEvent.id : null) !is null; 543 return OS.objc_msgSend(this.id_, OS.sel_shouldBeTreatedAsInkEvent_1, theEvent !is null ? theEvent.id_ : null) !is null;
543 } 544 }
544 545
545 public void showContextHelp (id sender) 546 public void showContextHelp (id sender)
546 { 547 {
547 OS.objc_msgSend(this.id, OS.sel_showContextHelp_1, sender !is null ? sender.id : null); 548 OS.objc_msgSend(this.id_, OS.sel_showContextHelp_1, sender !is null ? sender.id_ : null);
548 } 549 }
549 550
550 public void swapWithMark (id sender) 551 public void swapWithMark (id sender)
551 { 552 {
552 OS.objc_msgSend(this.id, OS.sel_swapWithMark_1, sender !is null ? sender.id : null); 553 OS.objc_msgSend(this.id_, OS.sel_swapWithMark_1, sender !is null ? sender.id_ : null);
553 } 554 }
554 555
555 public void tabletPoint (NSEvent theEvent) 556 public void tabletPoint (NSEvent theEvent)
556 { 557 {
557 OS.objc_msgSend(this.id, OS.sel_tabletPoint_1, theEvent !is null ? theEvent.id : null); 558 OS.objc_msgSend(this.id_, OS.sel_tabletPoint_1, theEvent !is null ? theEvent.id_ : null);
558 } 559 }
559 560
560 public void tabletProximity (NSEvent theEvent) 561 public void tabletProximity (NSEvent theEvent)
561 { 562 {
562 OS.objc_msgSend(this.id, OS.sel_tabletProximity_1, theEvent !is null ? theEvent.id : null); 563 OS.objc_msgSend(this.id_, OS.sel_tabletProximity_1, theEvent !is null ? theEvent.id_ : null);
563 } 564 }
564 565
565 public void transpose (id sender) 566 public void transpose (id sender)
566 { 567 {
567 OS.objc_msgSend(this.id, OS.sel_transpose_1, sender !is null ? sender.id : null); 568 OS.objc_msgSend(this.id_, OS.sel_transpose_1, sender !is null ? sender.id_ : null);
568 } 569 }
569 570
570 public void transposeWords (id sender) 571 public void transposeWords (id sender)
571 { 572 {
572 OS.objc_msgSend(this.id, OS.sel_transposeWords_1, sender !is null ? sender.id : null); 573 OS.objc_msgSend(this.id_, OS.sel_transposeWords_1, sender !is null ? sender.id_ : null);
573 } 574 }
574 575
575 public bool tryToPerform (objc.SEL anAction, id anObject) 576 public bool tryToPerform (objc.SEL anAction, id anObject)
576 { 577 {
577 return OS.objc_msgSend(this.id, OS.sel_tryToPerform_1with_1, anAction, anObject !is null ? anObject.id : null) !is null; 578 return OS.objc_msgSend(this.id_, OS.sel_tryToPerform_1with_1, anAction, anObject !is null ? anObject.id_ : null) !is null;
578 } 579 }
579 580
580 public NSUndoManager undoManager () 581 public NSUndoManager undoManager ()
581 { 582 {
582 objc.id result = OS.objc_msgSend(this.id, OS.sel_undoManager); 583 objc.id result = OS.objc_msgSend(this.id_, OS.sel_undoManager);
583 return result !is null ? new NSUndoManager(result) : null; 584 return result !is null ? new NSUndoManager(result) : null;
584 } 585 }
585 586
586 public void uppercaseWord (id sender) 587 public void uppercaseWord (id sender)
587 { 588 {
588 OS.objc_msgSend(this.id, OS.sel_uppercaseWord_1, sender !is null ? sender.id : null); 589 OS.objc_msgSend(this.id_, OS.sel_uppercaseWord_1, sender !is null ? sender.id_ : null);
589 } 590 }
590 591
591 public id validRequestorForSendType (NSString sendType, NSString returnType) 592 public id validRequestorForSendType (NSString sendType, NSString returnType)
592 { 593 {
593 objc.id result = OS.objc_msgSend(this.id, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id : null, 594 objc.id result = OS.objc_msgSend(this.id_, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id_ : null,
594 returnType !is null ? returnType.id : null); 595 returnType !is null ? returnType.id_ : null);
595 return result !is null ? new id(result) : null; 596 return result !is null ? new id(result) : null;
596 } 597 }
597 598
598 public NSError willPresentError (NSError error) 599 public NSError willPresentError (NSError error)
599 { 600 {
600 objc.id result = OS.objc_msgSend(this.id, OS.sel_willPresentError_1, error !is null ? error.id : null); 601 objc.id result = OS.objc_msgSend(this.id_, OS.sel_willPresentError_1, error !is null ? error.id_ : null);
601 return result !is null ? new NSError(result) : null; 602 return result !is null ? new NSError(result) : null;
602 } 603 }
603 604
604 public void yank (id sender) 605 public void yank (id sender)
605 { 606 {
606 OS.objc_msgSend(this.id, OS.sel_yank_1, sender !is null ? sender.id : null); 607 OS.objc_msgSend(this.id_, OS.sel_yank_1, sender !is null ? sender.id_ : null);
607 } 608 }
608 609
609 } 610 }