comparison dwt/internal/cocoa/NSApplication.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.NSApplication; 14 module dwt.internal.cocoa.NSApplication;
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.NSDate; 18 import dwt.internal.cocoa.NSDate;
18 import dwt.internal.cocoa.NSDictionary; 19 import dwt.internal.cocoa.NSDictionary;
19 import dwt.internal.cocoa.NSDockTile; 20 import dwt.internal.cocoa.NSDockTile;
20 import dwt.internal.cocoa.NSEvent; 21 import dwt.internal.cocoa.NSEvent;
41 super(id); 42 super(id);
42 } 43 }
43 44
44 public void abortModal () 45 public void abortModal ()
45 { 46 {
46 OS.objc_msgSend(this.id, OS.sel_abortModal); 47 OS.objc_msgSend(this.id_, OS.sel_abortModal);
47 } 48 }
48 49
49 public void activateContextHelpMode (id sender) 50 public void activateContextHelpMode (id sender)
50 { 51 {
51 OS.objc_msgSend(this.id, OS.sel_activateContextHelpMode_1, sender !is null ? sender.id : null); 52 OS.objc_msgSend(this.id_, OS.sel_activateContextHelpMode_1, sender !is null ? sender.id_ : null);
52 } 53 }
53 54
54 public void activateIgnoringOtherApps (bool flag) 55 public void activateIgnoringOtherApps (bool flag)
55 { 56 {
56 OS.objc_msgSend(this.id, OS.sel_activateIgnoringOtherApps_1, flag); 57 OS.objc_msgSend(this.id_, OS.sel_activateIgnoringOtherApps_1, flag);
57 } 58 }
58 59
59 public void addWindowsItem (NSWindow win, NSString aString, bool isFilename) 60 public void addWindowsItem (NSWindow win, NSString aString, bool isFilename)
60 { 61 {
61 OS.objc_msgSend(this.id, OS.sel_addWindowsItem_1title_1filename_1, win !is null ? win.id : null, aString !is null ? aString.id : null, 62 OS.objc_msgSend(this.id_, OS.sel_addWindowsItem_1title_1filename_1, win !is null ? win.id_ : null, aString !is null ? aString.id_ : null,
62 isFilename); 63 isFilename);
63 } 64 }
64 65
65 public NSImage applicationIconImage () 66 public NSImage applicationIconImage ()
66 { 67 {
67 objc.id result = OS.objc_msgSend(this.id, OS.sel_applicationIconImage); 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_applicationIconImage);
68 return result !is null ? new NSImage(result) : null; 69 return result !is null ? new NSImage(result) : null;
69 } 70 }
70 71
71 public void arrangeInFront (id sender) 72 public void arrangeInFront (id sender)
72 { 73 {
73 OS.objc_msgSend(this.id, OS.sel_arrangeInFront_1, sender !is null ? sender.id : null); 74 OS.objc_msgSend(this.id_, OS.sel_arrangeInFront_1, sender !is null ? sender.id_ : null);
74 } 75 }
75 76
76 public objc.id beginModalSessionForWindow_ (NSWindow theWindow) 77 public objc.id beginModalSessionForWindow_ (NSWindow theWindow)
77 { 78 {
78 return OS.objc_msgSend(this.id, OS.sel_beginModalSessionForWindow_1, theWindow !is null ? theWindow.id : null); 79 return OS.objc_msgSend(this.id_, OS.sel_beginModalSessionForWindow_1, theWindow !is null ? theWindow.id_ : null);
79 } 80 }
80 81
81 public objc.id beginModalSessionForWindow_relativeToWindow_ (NSWindow theWindow, NSWindow docWindow) 82 public objc.id beginModalSessionForWindow_relativeToWindow_ (NSWindow theWindow, NSWindow docWindow)
82 { 83 {
83 return OS.objc_msgSend(this.id, OS.sel_beginModalSessionForWindow_1relativeToWindow_1, theWindow !is null ? theWindow.id : null, 84 return OS.objc_msgSend(this.id_, OS.sel_beginModalSessionForWindow_1relativeToWindow_1, theWindow !is null ? theWindow.id_ : null,
84 docWindow !is null ? docWindow.id : null); 85 docWindow !is null ? docWindow.id_ : null);
85 } 86 }
86 87
87 public void beginSheet (NSWindow sheet, NSWindow docWindow, id modalDelegate, objc.id didEndSelector, objc.id contextInfo) 88 public void beginSheet (NSWindow sheet, NSWindow docWindow, id modalDelegate, objc.id didEndSelector, objc.id contextInfo)
88 { 89 {
89 OS.objc_msgSend(this.id, OS.sel_beginSheet_1modalForWindow_1modalDelegate_1didEndSelector_1contextInfo_1, sheet !is null ? sheet.id : null, 90 OS.objc_msgSend(this.id_, OS.sel_beginSheet_1modalForWindow_1modalDelegate_1didEndSelector_1contextInfo_1, sheet !is null ? sheet.id_ : null,
90 docWindow !is null ? docWindow.id : null, modalDelegate !is null ? modalDelegate.id : null, didEndSelector, contextInfo); 91 docWindow !is null ? docWindow.id_ : null, modalDelegate !is null ? modalDelegate.id_ : null, didEndSelector, contextInfo);
91 } 92 }
92 93
93 public void cancelUserAttentionRequest (objc.id request) 94 public void cancelUserAttentionRequest (objc.id request)
94 { 95 {
95 OS.objc_msgSend(this.id, OS.sel_cancelUserAttentionRequest_1, request); 96 OS.objc_msgSend(this.id_, OS.sel_cancelUserAttentionRequest_1, request);
96 } 97 }
97 98
98 public void changeWindowsItem (NSWindow win, NSString aString, bool isFilename) 99 public void changeWindowsItem (NSWindow win, NSString aString, bool isFilename)
99 { 100 {
100 OS.objc_msgSend(this.id, OS.sel_changeWindowsItem_1title_1filename_1, win !is null ? win.id : null, aString !is null ? aString.id : null, 101 OS.objc_msgSend(this.id_, OS.sel_changeWindowsItem_1title_1filename_1, win !is null ? win.id_ : null, aString !is null ? aString.id_ : null,
101 isFilename); 102 isFilename);
102 } 103 }
103 104
104 public NSGraphicsContext context () 105 public NSGraphicsContext context ()
105 { 106 {
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_context); 107 objc.id result = OS.objc_msgSend(this.id_, OS.sel_context);
107 return result !is null ? new NSGraphicsContext(result) : null; 108 return result !is null ? new NSGraphicsContext(result) : null;
108 } 109 }
109 110
110 public NSEvent currentEvent () 111 public NSEvent currentEvent ()
111 { 112 {
112 objc.id result = OS.objc_msgSend(this.id, OS.sel_currentEvent); 113 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currentEvent);
113 return result !is null ? new NSEvent(result) : null; 114 return result !is null ? new NSEvent(result) : null;
114 } 115 }
115 116
116 public void deactivate () 117 public void deactivate ()
117 { 118 {
118 OS.objc_msgSend(this.id, OS.sel_deactivate); 119 OS.objc_msgSend(this.id_, OS.sel_deactivate);
119 } 120 }
120 121
121 public id delegatee () 122 public id delegatee ()
122 { 123 {
123 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 124 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
124 return result !is null ? new id(result) : null; 125 return result !is null ? new id(result) : null;
125 } 126 }
126 127
127 public static void detachDrawingThread (objc.id selector, id target, id argument) 128 public static void detachDrawingThread (objc.id selector, id target, id argument)
128 { 129 {
129 OS.objc_msgSend(OS.class_NSApplication, OS.sel_detachDrawingThread_1toTarget_1withObject_1, selector, target !is null ? target.id : null, 130 OS.objc_msgSend(OS.class_NSApplication, OS.sel_detachDrawingThread_1toTarget_1withObject_1, selector, target !is null ? target.id_ : null,
130 argument !is null ? argument.id : null); 131 argument !is null ? argument.id_ : null);
131 } 132 }
132 133
133 public void discardEventsMatchingMask (NSUInteger mask, NSEvent lastEvent) 134 public void discardEventsMatchingMask (NSUInteger mask, NSEvent lastEvent)
134 { 135 {
135 OS.objc_msgSend(this.id, OS.sel_discardEventsMatchingMask_1beforeEvent_1, mask, lastEvent !is null ? lastEvent.id : null); 136 OS.objc_msgSend(this.id_, OS.sel_discardEventsMatchingMask_1beforeEvent_1, mask, lastEvent !is null ? lastEvent.id_ : null);
136 } 137 }
137 138
138 public NSDockTile dockTile () 139 public NSDockTile dockTile ()
139 { 140 {
140 objc.id result = OS.objc_msgSend(this.id, OS.sel_dockTile); 141 objc.id result = OS.objc_msgSend(this.id_, OS.sel_dockTile);
141 return result !is null ? new NSDockTile(result) : null; 142 return result !is null ? new NSDockTile(result) : null;
142 } 143 }
143 144
144 public void endModalSession (objc.id session) 145 public void endModalSession (objc.id session)
145 { 146 {
146 OS.objc_msgSend(this.id, OS.sel_endModalSession_1, session); 147 OS.objc_msgSend(this.id_, OS.sel_endModalSession_1, session);
147 } 148 }
148 149
149 public void endSheet_ (NSWindow sheet) 150 public void endSheet_ (NSWindow sheet)
150 { 151 {
151 OS.objc_msgSend(this.id, OS.sel_endSheet_1, sheet !is null ? sheet.id : null); 152 OS.objc_msgSend(this.id_, OS.sel_endSheet_1, sheet !is null ? sheet.id_ : null);
152 } 153 }
153 154
154 public void endSheet_returnCode_ (NSWindow sheet, NSInteger returnCode) 155 public void endSheet_returnCode_ (NSWindow sheet, NSInteger returnCode)
155 { 156 {
156 OS.objc_msgSend(this.id, OS.sel_endSheet_1returnCode_1, sheet !is null ? sheet.id : null, returnCode); 157 OS.objc_msgSend(this.id_, OS.sel_endSheet_1returnCode_1, sheet !is null ? sheet.id_ : null, returnCode);
157 } 158 }
158 159
159 public void finishLaunching () 160 public void finishLaunching ()
160 { 161 {
161 OS.objc_msgSend(this.id, OS.sel_finishLaunching); 162 OS.objc_msgSend(this.id_, OS.sel_finishLaunching);
162 } 163 }
163 164
164 public void hide (id sender) 165 public void hide (id sender)
165 { 166 {
166 OS.objc_msgSend(this.id, OS.sel_hide_1, sender !is null ? sender.id : null); 167 OS.objc_msgSend(this.id_, OS.sel_hide_1, sender !is null ? sender.id_ : null);
167 } 168 }
168 169
169 public void hideOtherApplications (id sender) 170 public void hideOtherApplications (id sender)
170 { 171 {
171 OS.objc_msgSend(this.id, OS.sel_hideOtherApplications_1, sender !is null ? sender.id : null); 172 OS.objc_msgSend(this.id_, OS.sel_hideOtherApplications_1, sender !is null ? sender.id_ : null);
172 } 173 }
173 174
174 public bool isActive () 175 public bool isActive ()
175 { 176 {
176 return OS.objc_msgSend(this.id, OS.sel_isActive) !is null; 177 return OS.objc_msgSend(this.id_, OS.sel_isActive) !is null;
177 } 178 }
178 179
179 public bool isHidden () 180 public bool isHidden ()
180 { 181 {
181 return OS.objc_msgSend(this.id, OS.sel_isHidden) !is null; 182 return OS.objc_msgSend(this.id_, OS.sel_isHidden) !is null;
182 } 183 }
183 184
184 public bool isRunning () 185 public bool isRunning ()
185 { 186 {
186 return OS.objc_msgSend(this.id, OS.sel_isRunning) !is null; 187 return OS.objc_msgSend(this.id_, OS.sel_isRunning) !is null;
187 } 188 }
188 189
189 public NSWindow keyWindow () 190 public NSWindow keyWindow ()
190 { 191 {
191 objc.id result = OS.objc_msgSend(this.id, OS.sel_keyWindow); 192 objc.id result = OS.objc_msgSend(this.id_, OS.sel_keyWindow);
192 return result !is null ? new NSWindow(result) : null; 193 return result !is null ? new NSWindow(result) : null;
193 } 194 }
194 195
195 public NSMenu mainMenu () 196 public NSMenu mainMenu ()
196 { 197 {
197 objc.id result = OS.objc_msgSend(this.id, OS.sel_mainMenu); 198 objc.id result = OS.objc_msgSend(this.id_, OS.sel_mainMenu);
198 return result !is null ? new NSMenu(result) : null; 199 return result !is null ? new NSMenu(result) : null;
199 } 200 }
200 201
201 public NSWindow mainWindow () 202 public NSWindow mainWindow ()
202 { 203 {
203 objc.id result = OS.objc_msgSend(this.id, OS.sel_mainWindow); 204 objc.id result = OS.objc_msgSend(this.id_, OS.sel_mainWindow);
204 return result !is null ? new NSWindow(result) : null; 205 return result !is null ? new NSWindow(result) : null;
205 } 206 }
206 207
207 public NSWindow makeWindowsPerform (objc.id aSelector, bool flag) 208 public NSWindow makeWindowsPerform (objc.id aSelector, bool flag)
208 { 209 {
209 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeWindowsPerform_1inOrder_1, aSelector, flag); 210 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeWindowsPerform_1inOrder_1, aSelector, flag);
210 return result !is null ? new NSWindow(result) : null; 211 return result !is null ? new NSWindow(result) : null;
211 } 212 }
212 213
213 public void miniaturizeAll (id sender) 214 public void miniaturizeAll (id sender)
214 { 215 {
215 OS.objc_msgSend(this.id, OS.sel_miniaturizeAll_1, sender !is null ? sender.id : null); 216 OS.objc_msgSend(this.id_, OS.sel_miniaturizeAll_1, sender !is null ? sender.id_ : null);
216 } 217 }
217 218
218 public NSWindow modalWindow () 219 public NSWindow modalWindow ()
219 { 220 {
220 objc.id result = OS.objc_msgSend(this.id, OS.sel_modalWindow); 221 objc.id result = OS.objc_msgSend(this.id_, OS.sel_modalWindow);
221 return result !is null ? new NSWindow(result) : null; 222 return result !is null ? new NSWindow(result) : null;
222 } 223 }
223 224
224 public NSEvent nextEventMatchingMask (NSUInteger mask, NSDate expiration, NSString mode, bool deqFlag) 225 public NSEvent nextEventMatchingMask (NSUInteger mask, NSDate expiration, NSString mode, bool deqFlag)
225 { 226 {
226 objc.id result = OS.objc_msgSend(this.id, OS.sel_nextEventMatchingMask_1untilDate_1inMode_1dequeue_1, mask, 227 objc.id result = OS.objc_msgSend(this.id_, OS.sel_nextEventMatchingMask_1untilDate_1inMode_1dequeue_1, mask,
227 expiration !is null ? expiration.id : null, mode !is null ? mode.id : null, deqFlag); 228 expiration !is null ? expiration.id_ : null, mode !is null ? mode.id_ : null, deqFlag);
228 return result !is null ? new NSEvent(result) : null; 229 return result !is null ? new NSEvent(result) : null;
229 } 230 }
230 231
231 public void orderFrontCharacterPalette (id sender) 232 public void orderFrontCharacterPalette (id sender)
232 { 233 {
233 OS.objc_msgSend(this.id, OS.sel_orderFrontCharacterPalette_1, sender !is null ? sender.id : null); 234 OS.objc_msgSend(this.id_, OS.sel_orderFrontCharacterPalette_1, sender !is null ? sender.id_ : null);
234 } 235 }
235 236
236 public void orderFrontColorPanel (id sender) 237 public void orderFrontColorPanel (id sender)
237 { 238 {
238 OS.objc_msgSend(this.id, OS.sel_orderFrontColorPanel_1, sender !is null ? sender.id : null); 239 OS.objc_msgSend(this.id_, OS.sel_orderFrontColorPanel_1, sender !is null ? sender.id_ : null);
239 } 240 }
240 241
241 public void orderFrontStandardAboutPanel (id sender) 242 public void orderFrontStandardAboutPanel (id sender)
242 { 243 {
243 OS.objc_msgSend(this.id, OS.sel_orderFrontStandardAboutPanel_1, sender !is null ? sender.id : null); 244 OS.objc_msgSend(this.id_, OS.sel_orderFrontStandardAboutPanel_1, sender !is null ? sender.id_ : null);
244 } 245 }
245 246
246 public void orderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary) 247 public void orderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary)
247 { 248 {
248 OS.objc_msgSend(this.id, OS.sel_orderFrontStandardAboutPanelWithOptions_1, optionsDictionary !is null ? optionsDictionary.id : null); 249 OS.objc_msgSend(this.id_, OS.sel_orderFrontStandardAboutPanelWithOptions_1, optionsDictionary !is null ? optionsDictionary.id_ : null);
249 } 250 }
250 251
251 public NSArray orderedDocuments () 252 public NSArray orderedDocuments ()
252 { 253 {
253 objc.id result = OS.objc_msgSend(this.id, OS.sel_orderedDocuments); 254 objc.id result = OS.objc_msgSend(this.id_, OS.sel_orderedDocuments);
254 return result !is null ? new NSArray(result) : null; 255 return result !is null ? new NSArray(result) : null;
255 } 256 }
256 257
257 public NSArray orderedWindows () 258 public NSArray orderedWindows ()
258 { 259 {
259 objc.id result = OS.objc_msgSend(this.id, OS.sel_orderedWindows); 260 objc.id result = OS.objc_msgSend(this.id_, OS.sel_orderedWindows);
260 return result !is null ? new NSArray(result) : null; 261 return result !is null ? new NSArray(result) : null;
261 } 262 }
262 263
263 public void postEvent (NSEvent event, bool flag) 264 public void postEvent (NSEvent event, bool flag)
264 { 265 {
265 OS.objc_msgSend(this.id, OS.sel_postEvent_1atStart_1, event !is null ? event.id : null, flag); 266 OS.objc_msgSend(this.id_, OS.sel_postEvent_1atStart_1, event !is null ? event.id_ : null, flag);
266 } 267 }
267 268
268 public void preventWindowOrdering () 269 public void preventWindowOrdering ()
269 { 270 {
270 OS.objc_msgSend(this.id, OS.sel_preventWindowOrdering); 271 OS.objc_msgSend(this.id_, OS.sel_preventWindowOrdering);
271 } 272 }
272 273
273 public void registerServicesMenuSendTypes (NSArray sendTypes, NSArray returnTypes) 274 public void registerServicesMenuSendTypes (NSArray sendTypes, NSArray returnTypes)
274 { 275 {
275 OS.objc_msgSend(this.id, OS.sel_registerServicesMenuSendTypes_1returnTypes_1, sendTypes !is null ? sendTypes.id : null, 276 OS.objc_msgSend(this.id_, OS.sel_registerServicesMenuSendTypes_1returnTypes_1, sendTypes !is null ? sendTypes.id_ : null,
276 returnTypes !is null ? returnTypes.id : null); 277 returnTypes !is null ? returnTypes.id_ : null);
277 } 278 }
278 279
279 public void removeWindowsItem (NSWindow win) 280 public void removeWindowsItem (NSWindow win)
280 { 281 {
281 OS.objc_msgSend(this.id, OS.sel_removeWindowsItem_1, win !is null ? win.id : null); 282 OS.objc_msgSend(this.id_, OS.sel_removeWindowsItem_1, win !is null ? win.id_ : null);
282 } 283 }
283 284
284 public void replyToApplicationShouldTerminate (bool shouldTerminate) 285 public void replyToApplicationShouldTerminate (bool shouldTerminate)
285 { 286 {
286 OS.objc_msgSend(this.id, OS.sel_replyToApplicationShouldTerminate_1, shouldTerminate); 287 OS.objc_msgSend(this.id_, OS.sel_replyToApplicationShouldTerminate_1, shouldTerminate);
287 } 288 }
288 289
289 public void replyToOpenOrPrint (objc.id reply) 290 public void replyToOpenOrPrint (objc.id reply)
290 { 291 {
291 OS.objc_msgSend(this.id, OS.sel_replyToOpenOrPrint_1, reply); 292 OS.objc_msgSend(this.id_, OS.sel_replyToOpenOrPrint_1, reply);
292 } 293 }
293 294
294 public void reportException (NSException theException) 295 public void reportException (NSException theException)
295 { 296 {
296 OS.objc_msgSend(this.id, OS.sel_reportException_1, theException !is null ? theException.id : null); 297 OS.objc_msgSend(this.id_, OS.sel_reportException_1, theException !is null ? theException.id_ : null);
297 } 298 }
298 299
299 public NSInteger requestUserAttention (objc.id requestType) 300 public NSInteger requestUserAttention (objc.id requestType)
300 { 301 {
301 return OS.objc_msgSend(this.id, OS.sel_requestUserAttention_1, requestType); 302 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_requestUserAttention_1, requestType);
302 } 303 }
303 304
304 public void run () 305 public void run ()
305 { 306 {
306 OS.objc_msgSend(this.id, OS.sel_run); 307 OS.objc_msgSend(this.id_, OS.sel_run);
307 } 308 }
308 309
309 public objc.id runModalForWindow_ (NSWindow theWindow) 310 public objc.id runModalForWindow_ (NSWindow theWindow)
310 { 311 {
311 return OS.objc_msgSend(this.id, OS.sel_runModalForWindow_1, theWindow !is null ? theWindow.id : null); 312 return OS.objc_msgSend(this.id_, OS.sel_runModalForWindow_1, theWindow !is null ? theWindow.id_ : null);
312 } 313 }
313 314
314 public objc.id runModalForWindow_relativeToWindow_ (NSWindow theWindow, NSWindow docWindow) 315 public objc.id runModalForWindow_relativeToWindow_ (NSWindow theWindow, NSWindow docWindow)
315 { 316 {
316 return OS.objc_msgSend(this.id, OS.sel_runModalForWindow_1relativeToWindow_1, theWindow !is null ? theWindow.id : null, 317 return OS.objc_msgSend(this.id_, OS.sel_runModalForWindow_1relativeToWindow_1, theWindow !is null ? theWindow.id_ : null,
317 docWindow !is null ? docWindow.id : null); 318 docWindow !is null ? docWindow.id_ : null);
318 } 319 }
319 320
320 public objc.id runModalSession (objc.id session) 321 public objc.id runModalSession (objc.id session)
321 { 322 {
322 return OS.objc_msgSend(this.id, OS.sel_runModalSession_1, session); 323 return OS.objc_msgSend(this.id_, OS.sel_runModalSession_1, session);
323 } 324 }
324 325
325 public void runPageLayout (id sender) 326 public void runPageLayout (id sender)
326 { 327 {
327 OS.objc_msgSend(this.id, OS.sel_runPageLayout_1, sender !is null ? sender.id : null); 328 OS.objc_msgSend(this.id_, OS.sel_runPageLayout_1, sender !is null ? sender.id_ : null);
328 } 329 }
329 330
330 public bool sendAction (objc.id theAction, id theTarget, id sender) 331 public bool sendAction (objc.id theAction, id theTarget, id sender)
331 { 332 {
332 return OS.objc_msgSend(this.id, OS.sel_sendAction_1to_1from_1, theAction, theTarget !is null ? theTarget.id : null, 333 return OS.objc_msgSend(this.id_, OS.sel_sendAction_1to_1from_1, theAction, theTarget !is null ? theTarget.id_ : null,
333 sender !is null ? sender.id : null) !is null; 334 sender !is null ? sender.id_ : null) !is null;
334 } 335 }
335 336
336 public void sendEvent (NSEvent theEvent) 337 public void sendEvent (NSEvent theEvent)
337 { 338 {
338 OS.objc_msgSend(this.id, OS.sel_sendEvent_1, theEvent !is null ? theEvent.id : null); 339 OS.objc_msgSend(this.id_, OS.sel_sendEvent_1, theEvent !is null ? theEvent.id_ : null);
339 } 340 }
340 341
341 public NSMenu servicesMenu () 342 public NSMenu servicesMenu ()
342 { 343 {
343 objc.id result = OS.objc_msgSend(this.id, OS.sel_servicesMenu); 344 objc.id result = OS.objc_msgSend(this.id_, OS.sel_servicesMenu);
344 return result !is null ? new NSMenu(result) : null; 345 return result !is null ? new NSMenu(result) : null;
345 } 346 }
346 347
347 public id servicesProvider () 348 public id servicesProvider ()
348 { 349 {
349 objc.id result = OS.objc_msgSend(this.id, OS.sel_servicesProvider); 350 objc.id result = OS.objc_msgSend(this.id_, OS.sel_servicesProvider);
350 return result !is null ? new id(result) : null; 351 return result !is null ? new id(result) : null;
351 } 352 }
352 353
353 public void setApplicationIconImage (NSImage image) 354 public void setApplicationIconImage (NSImage image)
354 { 355 {
355 OS.objc_msgSend(this.id, OS.sel_setApplicationIconImage_1, image !is null ? image.id : null); 356 OS.objc_msgSend(this.id_, OS.sel_setApplicationIconImage_1, image !is null ? image.id_ : null);
356 } 357 }
357 358
358 public void setDelegate (id anObject) 359 public void setDelegate (id anObject)
359 { 360 {
360 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject !is null ? anObject.id : null); 361 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, anObject !is null ? anObject.id_ : null);
361 } 362 }
362 363
363 public void setMainMenu (NSMenu aMenu) 364 public void setMainMenu (NSMenu aMenu)
364 { 365 {
365 OS.objc_msgSend(this.id, OS.sel_setMainMenu_1, aMenu !is null ? aMenu.id : null); 366 OS.objc_msgSend(this.id_, OS.sel_setMainMenu_1, aMenu !is null ? aMenu.id_ : null);
366 } 367 }
367 368
368 public void setServicesMenu (NSMenu aMenu) 369 public void setServicesMenu (NSMenu aMenu)
369 { 370 {
370 OS.objc_msgSend(this.id, OS.sel_setServicesMenu_1, aMenu !is null ? aMenu.id : null); 371 OS.objc_msgSend(this.id_, OS.sel_setServicesMenu_1, aMenu !is null ? aMenu.id_ : null);
371 } 372 }
372 373
373 public void setServicesProvider (id provider) 374 public void setServicesProvider (id provider)
374 { 375 {
375 OS.objc_msgSend(this.id, OS.sel_setServicesProvider_1, provider !is null ? provider.id : null); 376 OS.objc_msgSend(this.id_, OS.sel_setServicesProvider_1, provider !is null ? provider.id_ : null);
376 } 377 }
377 378
378 public void setWindowsMenu (NSMenu aMenu) 379 public void setWindowsMenu (NSMenu aMenu)
379 { 380 {
380 OS.objc_msgSend(this.id, OS.sel_setWindowsMenu_1, aMenu !is null ? aMenu.id : null); 381 OS.objc_msgSend(this.id_, OS.sel_setWindowsMenu_1, aMenu !is null ? aMenu.id_ : null);
381 } 382 }
382 383
383 public void setWindowsNeedUpdate (bool needUpdate) 384 public void setWindowsNeedUpdate (bool needUpdate)
384 { 385 {
385 OS.objc_msgSend(this.id, OS.sel_setWindowsNeedUpdate_1, needUpdate); 386 OS.objc_msgSend(this.id_, OS.sel_setWindowsNeedUpdate_1, needUpdate);
386 } 387 }
387 388
388 public static NSApplication sharedApplication () 389 public static NSApplication sharedApplication ()
389 { 390 {
390 objc.id result = OS.objc_msgSend(OS.class_NSApplication, OS.sel_sharedApplication); 391 objc.id result = OS.objc_msgSend(OS.class_NSApplication, OS.sel_sharedApplication);
391 return result !is null ? new NSApplication(result) : null; 392 return result !is null ? new NSApplication(result) : null;
392 } 393 }
393 394
394 public void showHelp (id sender) 395 public void showHelp (id sender)
395 { 396 {
396 OS.objc_msgSend(this.id, OS.sel_showHelp_1, sender !is null ? sender.id : null); 397 OS.objc_msgSend(this.id_, OS.sel_showHelp_1, sender !is null ? sender.id_ : null);
397 } 398 }
398 399
399 public void stop (id sender) 400 public void stop (id sender)
400 { 401 {
401 OS.objc_msgSend(this.id, OS.sel_stop_1, sender !is null ? sender.id : null); 402 OS.objc_msgSend(this.id_, OS.sel_stop_1, sender !is null ? sender.id_ : null);
402 } 403 }
403 404
404 public void stopModal () 405 public void stopModal ()
405 { 406 {
406 OS.objc_msgSend(this.id, OS.sel_stopModal); 407 OS.objc_msgSend(this.id_, OS.sel_stopModal);
407 } 408 }
408 409
409 public void stopModalWithCode (NSInteger returnCode) 410 public void stopModalWithCode (NSInteger returnCode)
410 { 411 {
411 OS.objc_msgSend(this.id, OS.sel_stopModalWithCode_1, returnCode); 412 OS.objc_msgSend(this.id_, OS.sel_stopModalWithCode_1, returnCode);
412 } 413 }
413 414
414 public id targetForAction_ (objc.SEL theAction) 415 public id targetForAction_ (objc.SEL theAction)
415 { 416 {
416 objc.id result = OS.objc_msgSend(this.id, OS.sel_targetForAction_1, theAction); 417 objc.id result = OS.objc_msgSend(this.id_, OS.sel_targetForAction_1, theAction);
417 return result !is null ? new id(result) : null; 418 return result !is null ? new id(result) : null;
418 } 419 }
419 420
420 public id targetForAction_to_from_ (objc.SEL theAction, id theTarget, id sender) 421 public id targetForAction_to_from_ (objc.SEL theAction, id theTarget, id sender)
421 { 422 {
422 objc.id result = OS.objc_msgSend(this.id, OS.sel_targetForAction_1to_1from_1, theAction, theTarget !is null ? theTarget.id : null, 423 objc.id result = OS.objc_msgSend(this.id_, OS.sel_targetForAction_1to_1from_1, theAction, theTarget !is null ? theTarget.id_ : null,
423 sender !is null ? sender.id : null); 424 sender !is null ? sender.id_ : null);
424 return result !is null ? new id(result) : null; 425 return result !is null ? new id(result) : null;
425 } 426 }
426 427
427 public void terminate (id sender) 428 public void terminate (id sender)
428 { 429 {
429 OS.objc_msgSend(this.id, OS.sel_terminate_1, sender !is null ? sender.id : null); 430 OS.objc_msgSend(this.id_, OS.sel_terminate_1, sender !is null ? sender.id_ : null);
430 } 431 }
431 432
432 public bool tryToPerform (objc.SEL anAction, id anObject) 433 public bool tryToPerform (objc.SEL anAction, id anObject)
433 { 434 {
434 return OS.objc_msgSend(this.id, OS.sel_tryToPerform_1with_1, anAction, anObject !is null ? anObject.id : null) !is null; 435 return OS.objc_msgSend(this.id_, OS.sel_tryToPerform_1with_1, anAction, anObject !is null ? anObject.id_ : null) !is null;
435 } 436 }
436 437
437 public void unhide (id sender) 438 public void unhide (id sender)
438 { 439 {
439 OS.objc_msgSend(this.id, OS.sel_unhide_1, sender !is null ? sender.id : null); 440 OS.objc_msgSend(this.id_, OS.sel_unhide_1, sender !is null ? sender.id_ : null);
440 } 441 }
441 442
442 public void unhideAllApplications (id sender) 443 public void unhideAllApplications (id sender)
443 { 444 {
444 OS.objc_msgSend(this.id, OS.sel_unhideAllApplications_1, sender !is null ? sender.id : null); 445 OS.objc_msgSend(this.id_, OS.sel_unhideAllApplications_1, sender !is null ? sender.id_ : null);
445 } 446 }
446 447
447 public void unhideWithoutActivation () 448 public void unhideWithoutActivation ()
448 { 449 {
449 OS.objc_msgSend(this.id, OS.sel_unhideWithoutActivation); 450 OS.objc_msgSend(this.id_, OS.sel_unhideWithoutActivation);
450 } 451 }
451 452
452 public void updateWindows () 453 public void updateWindows ()
453 { 454 {
454 OS.objc_msgSend(this.id, OS.sel_updateWindows); 455 OS.objc_msgSend(this.id_, OS.sel_updateWindows);
455 } 456 }
456 457
457 public void updateWindowsItem (NSWindow win) 458 public void updateWindowsItem (NSWindow win)
458 { 459 {
459 OS.objc_msgSend(this.id, OS.sel_updateWindowsItem_1, win !is null ? win.id : null); 460 OS.objc_msgSend(this.id_, OS.sel_updateWindowsItem_1, win !is null ? win.id_ : null);
460 } 461 }
461 462
462 public id validRequestorForSendType (NSString sendType, NSString returnType) 463 public id validRequestorForSendType (NSString sendType, NSString returnType)
463 { 464 {
464 objc.id result = OS.objc_msgSend(this.id, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id : null, 465 objc.id result = OS.objc_msgSend(this.id_, OS.sel_validRequestorForSendType_1returnType_1, sendType !is null ? sendType.id_ : null,
465 returnType !is null ? returnType.id : null); 466 returnType !is null ? returnType.id_ : null);
466 return result !is null ? new id(result) : null; 467 return result !is null ? new id(result) : null;
467 } 468 }
468 469
469 public NSWindow windowWithWindowNumber (NSInteger windowNum) 470 public NSWindow windowWithWindowNumber (NSInteger windowNum)
470 { 471 {
471 objc.id result = OS.objc_msgSend(this.id, OS.sel_windowWithWindowNumber_1, windowNum); 472 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windowWithWindowNumber_1, windowNum);
472 return result !is null ? new NSWindow(result) : null; 473 return result !is null ? new NSWindow(result) : null;
473 } 474 }
474 475
475 public NSArray windows () 476 public NSArray windows ()
476 { 477 {
477 objc.id result = OS.objc_msgSend(this.id, OS.sel_windows); 478 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windows);
478 return result !is null ? new NSArray(result) : null; 479 return result !is null ? new NSArray(result) : null;
479 } 480 }
480 481
481 public NSMenu windowsMenu () 482 public NSMenu windowsMenu ()
482 { 483 {
483 objc.id result = OS.objc_msgSend(this.id, OS.sel_windowsMenu); 484 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windowsMenu);
484 return result !is null ? new NSMenu(result) : null; 485 return result !is null ? new NSMenu(result) : null;
485 } 486 }
486 487
487 } 488 }