Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSDocument.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 |
---|---|
63 super(id); | 63 super(id); |
64 } | 64 } |
65 | 65 |
66 public void addWindowController (NSWindowController windowController) | 66 public void addWindowController (NSWindowController windowController) |
67 { | 67 { |
68 OS.objc_msgSend(this.id, OS.sel_addWindowController_1, windowController !is null ? windowController.id : null); | 68 OS.objc_msgSend(this.id_, OS.sel_addWindowController_1, windowController !is null ? windowController.id_ : null); |
69 } | 69 } |
70 | 70 |
71 public void autosaveDocumentWithDelegate (id delegatee, objc.SEL didAutosaveSelector, void* contextInfo) | 71 public void autosaveDocumentWithDelegate (id delegatee, objc.SEL didAutosaveSelector, void* contextInfo) |
72 { | 72 { |
73 OS.objc_msgSend(this.id, OS.sel_autosaveDocumentWithDelegate_1didAutosaveSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, | 73 OS.objc_msgSend(this.id_, OS.sel_autosaveDocumentWithDelegate_1didAutosaveSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null, |
74 didAutosaveSelector, contextInfo); | 74 didAutosaveSelector, contextInfo); |
75 } | 75 } |
76 | 76 |
77 public NSURL autosavedContentsFileURL () | 77 public NSURL autosavedContentsFileURL () |
78 { | 78 { |
79 objc.id result = OS.objc_msgSend(this.id, OS.sel_autosavedContentsFileURL); | 79 objc.id result = OS.objc_msgSend(this.id_, OS.sel_autosavedContentsFileURL); |
80 return result !is null ? new NSURL(result) : null; | 80 return result !is null ? new NSURL(result) : null; |
81 } | 81 } |
82 | 82 |
83 public NSString autosavingFileType () | 83 public NSString autosavingFileType () |
84 { | 84 { |
85 objc.id result = OS.objc_msgSend(this.id, OS.sel_autosavingFileType); | 85 objc.id result = OS.objc_msgSend(this.id_, OS.sel_autosavingFileType); |
86 return result !is null ? new NSString(result) : null; | 86 return result !is null ? new NSString(result) : null; |
87 } | 87 } |
88 | 88 |
89 public void canCloseDocumentWithDelegate (id delegatee, objc.SEL shouldCloseSelector, void* contextInfo) | 89 public void canCloseDocumentWithDelegate (id delegatee, objc.SEL shouldCloseSelector, void* contextInfo) |
90 { | 90 { |
91 OS.objc_msgSend(this.id, OS.sel_canCloseDocumentWithDelegate_1shouldCloseSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, | 91 OS.objc_msgSend(this.id_, OS.sel_canCloseDocumentWithDelegate_1shouldCloseSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null, |
92 shouldCloseSelector, contextInfo); | 92 shouldCloseSelector, contextInfo); |
93 } | 93 } |
94 | 94 |
95 public void close () | 95 public void close () |
96 { | 96 { |
97 OS.objc_msgSend(this.id, OS.sel_close); | 97 OS.objc_msgSend(this.id_, OS.sel_close); |
98 } | 98 } |
99 | 99 |
100 public NSData dataOfType (NSString typeName, objc.id** outError) | 100 public NSData dataOfType (NSString typeName, objc.id** outError) |
101 { | 101 { |
102 objc.id result = OS.objc_msgSend(this.id, OS.sel_dataOfType_1error_1, typeName !is null ? typeName.id : null, outError); | 102 objc.id result = OS.objc_msgSend(this.id_, OS.sel_dataOfType_1error_1, typeName !is null ? typeName.id_ : null, outError); |
103 return result !is null ? new NSData(result) : null; | 103 return result !is null ? new NSData(result) : null; |
104 } | 104 } |
105 | 105 |
106 public NSData dataRepresentationOfType (NSString type) | 106 public NSData dataRepresentationOfType (NSString type) |
107 { | 107 { |
108 objc.id result = OS.objc_msgSend(this.id, OS.sel_dataRepresentationOfType_1, type !is null ? type.id : null); | 108 objc.id result = OS.objc_msgSend(this.id_, OS.sel_dataRepresentationOfType_1, type !is null ? type.id_ : null); |
109 return result !is null ? new NSData(result) : null; | 109 return result !is null ? new NSData(result) : null; |
110 } | 110 } |
111 | 111 |
112 public NSString displayName () | 112 public NSString displayName () |
113 { | 113 { |
114 objc.id result = OS.objc_msgSend(this.id, OS.sel_displayName); | 114 objc.id result = OS.objc_msgSend(this.id_, OS.sel_displayName); |
115 return result !is null ? new NSString(result) : null; | 115 return result !is null ? new NSString(result) : null; |
116 } | 116 } |
117 | 117 |
118 public NSDictionary fileAttributesToWriteToFile (NSString fullDocumentPath, NSString documentTypeName, objc.id saveOperationType) | 118 public NSDictionary fileAttributesToWriteToFile (NSString fullDocumentPath, NSString documentTypeName, objc.id saveOperationType) |
119 { | 119 { |
120 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileAttributesToWriteToFile_1ofType_1saveOperation_1, | 120 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileAttributesToWriteToFile_1ofType_1saveOperation_1, |
121 fullDocumentPath !is null ? fullDocumentPath.id : null, documentTypeName !is null ? documentTypeName.id : null, saveOperationType); | 121 fullDocumentPath !is null ? fullDocumentPath.id_ : null, documentTypeName !is null ? documentTypeName.id_ : null, saveOperationType); |
122 return result !is null ? new NSDictionary(result) : null; | 122 return result !is null ? new NSDictionary(result) : null; |
123 } | 123 } |
124 | 124 |
125 public NSDictionary fileAttributesToWriteToURL (NSURL absoluteURL, NSString typeName, objc.id saveOperation, NSURL absoluteOriginalContentsURL, | 125 public NSDictionary fileAttributesToWriteToURL (NSURL absoluteURL, NSString typeName, objc.id saveOperation, NSURL absoluteOriginalContentsURL, |
126 objc.id** outError) | 126 objc.id** outError) |
127 { | 127 { |
128 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileAttributesToWriteToURL_1ofType_1forSaveOperation_1originalContentsURL_1error_1, | 128 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileAttributesToWriteToURL_1ofType_1forSaveOperation_1originalContentsURL_1error_1, |
129 absoluteURL !is null ? absoluteURL.id : null, typeName !is null ? typeName.id : null, saveOperation, | 129 absoluteURL !is null ? absoluteURL.id_ : null, typeName !is null ? typeName.id_ : null, saveOperation, |
130 absoluteOriginalContentsURL !is null ? absoluteOriginalContentsURL.id : null, outError); | 130 absoluteOriginalContentsURL !is null ? absoluteOriginalContentsURL.id_ : null, outError); |
131 return result !is null ? new NSDictionary(result) : null; | 131 return result !is null ? new NSDictionary(result) : null; |
132 } | 132 } |
133 | 133 |
134 public NSDate fileModificationDate () | 134 public NSDate fileModificationDate () |
135 { | 135 { |
136 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileModificationDate); | 136 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileModificationDate); |
137 return result !is null ? new NSDate(result) : null; | 137 return result !is null ? new NSDate(result) : null; |
138 } | 138 } |
139 | 139 |
140 public NSString fileName () | 140 public NSString fileName () |
141 { | 141 { |
142 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileName); | 142 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileName); |
143 return result !is null ? new NSString(result) : null; | 143 return result !is null ? new NSString(result) : null; |
144 } | 144 } |
145 | 145 |
146 public NSString fileNameExtensionForType (NSString typeName, objc.id saveOperation) | 146 public NSString fileNameExtensionForType (NSString typeName, objc.id saveOperation) |
147 { | 147 { |
148 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileNameExtensionForType_1saveOperation_1, typeName !is null ? typeName.id : null, | 148 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileNameExtensionForType_1saveOperation_1, typeName !is null ? typeName.id_ : null, |
149 saveOperation); | 149 saveOperation); |
150 return result !is null ? new NSString(result) : null; | 150 return result !is null ? new NSString(result) : null; |
151 } | 151 } |
152 | 152 |
153 public bool fileNameExtensionWasHiddenInLastRunSavePanel () | 153 public bool fileNameExtensionWasHiddenInLastRunSavePanel () |
154 { | 154 { |
155 return OS.objc_msgSend(this.id, OS.sel_fileNameExtensionWasHiddenInLastRunSavePanel) !is null; | 155 return OS.objc_msgSend(this.id_, OS.sel_fileNameExtensionWasHiddenInLastRunSavePanel) !is null; |
156 } | 156 } |
157 | 157 |
158 public NSString fileType () | 158 public NSString fileType () |
159 { | 159 { |
160 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileType); | 160 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileType); |
161 return result !is null ? new NSString(result) : null; | 161 return result !is null ? new NSString(result) : null; |
162 } | 162 } |
163 | 163 |
164 public NSString fileTypeFromLastRunSavePanel () | 164 public NSString fileTypeFromLastRunSavePanel () |
165 { | 165 { |
166 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileTypeFromLastRunSavePanel); | 166 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileTypeFromLastRunSavePanel); |
167 return result !is null ? new NSString(result) : null; | 167 return result !is null ? new NSString(result) : null; |
168 } | 168 } |
169 | 169 |
170 public NSURL fileURL () | 170 public NSURL fileURL () |
171 { | 171 { |
172 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileURL); | 172 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileURL); |
173 return result !is null ? new NSURL(result) : null; | 173 return result !is null ? new NSURL(result) : null; |
174 } | 174 } |
175 | 175 |
176 public NSFileWrapper fileWrapperOfType (NSString typeName, objc.id** outError) | 176 public NSFileWrapper fileWrapperOfType (NSString typeName, objc.id** outError) |
177 { | 177 { |
178 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileWrapperOfType_1error_1, typeName !is null ? typeName.id : null, outError); | 178 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileWrapperOfType_1error_1, typeName !is null ? typeName.id_ : null, outError); |
179 return result !is null ? new NSFileWrapper(result) : null; | 179 return result !is null ? new NSFileWrapper(result) : null; |
180 } | 180 } |
181 | 181 |
182 public NSFileWrapper fileWrapperRepresentationOfType (NSString type) | 182 public NSFileWrapper fileWrapperRepresentationOfType (NSString type) |
183 { | 183 { |
184 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileWrapperRepresentationOfType_1, type !is null ? type.id : null); | 184 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileWrapperRepresentationOfType_1, type !is null ? type.id_ : null); |
185 return result !is null ? new NSFileWrapper(result) : null; | 185 return result !is null ? new NSFileWrapper(result) : null; |
186 } | 186 } |
187 | 187 |
188 public id handleCloseScriptCommand (NSCloseCommand command) | 188 public id handleCloseScriptCommand (NSCloseCommand command) |
189 { | 189 { |
190 objc.id result = OS.objc_msgSend(this.id, OS.sel_handleCloseScriptCommand_1, command !is null ? command.id : null); | 190 objc.id result = OS.objc_msgSend(this.id_, OS.sel_handleCloseScriptCommand_1, command !is null ? command.id_ : null); |
191 return result !is null ? new id(result) : null; | 191 return result !is null ? new id(result) : null; |
192 } | 192 } |
193 | 193 |
194 public id handlePrintScriptCommand (NSScriptCommand command) | 194 public id handlePrintScriptCommand (NSScriptCommand command) |
195 { | 195 { |
196 objc.id result = OS.objc_msgSend(this.id, OS.sel_handlePrintScriptCommand_1, command !is null ? command.id : null); | 196 objc.id result = OS.objc_msgSend(this.id_, OS.sel_handlePrintScriptCommand_1, command !is null ? command.id_ : null); |
197 return result !is null ? new id(result) : null; | 197 return result !is null ? new id(result) : null; |
198 } | 198 } |
199 | 199 |
200 public id handleSaveScriptCommand (NSScriptCommand command) | 200 public id handleSaveScriptCommand (NSScriptCommand command) |
201 { | 201 { |
202 objc.id result = OS.objc_msgSend(this.id, OS.sel_handleSaveScriptCommand_1, command !is null ? command.id : null); | 202 objc.id result = OS.objc_msgSend(this.id_, OS.sel_handleSaveScriptCommand_1, command !is null ? command.id_ : null); |
203 return result !is null ? new id(result) : null; | 203 return result !is null ? new id(result) : null; |
204 } | 204 } |
205 | 205 |
206 public bool hasUnautosavedChanges () | 206 public bool hasUnautosavedChanges () |
207 { | 207 { |
208 return OS.objc_msgSend(this.id, OS.sel_hasUnautosavedChanges) !is null; | 208 return OS.objc_msgSend(this.id_, OS.sel_hasUnautosavedChanges) !is null; |
209 } | 209 } |
210 | 210 |
211 public bool hasUndoManager () | 211 public bool hasUndoManager () |
212 { | 212 { |
213 return OS.objc_msgSend(this.id, OS.sel_hasUndoManager) !is null; | 213 return OS.objc_msgSend(this.id_, OS.sel_hasUndoManager) !is null; |
214 } | 214 } |
215 | 215 |
216 public NSDocument initForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, objc.id** outError) | 216 public NSDocument initForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, objc.id** outError) |
217 { | 217 { |
218 objc.id result = OS.objc_msgSend(this.id, OS.sel_initForURL_1withContentsOfURL_1ofType_1error_1, | 218 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initForURL_1withContentsOfURL_1ofType_1error_1, |
219 absoluteDocumentURL !is null ? absoluteDocumentURL.id : null, | 219 absoluteDocumentURL !is null ? absoluteDocumentURL.id_ : null, |
220 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id : null, typeName !is null ? typeName.id : null, outError); | 220 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id_ : null, typeName !is null ? typeName.id_ : null, outError); |
221 return result !is null ? this : null; | 221 return result !is null ? this : null; |
222 } | 222 } |
223 | 223 |
224 public NSDocument initWithContentsOfFile (NSString absolutePath, NSString typeName) | 224 public NSDocument initWithContentsOfFile (NSString absolutePath, NSString typeName) |
225 { | 225 { |
226 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithContentsOfFile_1ofType_1, absolutePath !is null ? absolutePath.id : null, | 226 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithContentsOfFile_1ofType_1, absolutePath !is null ? absolutePath.id_ : null, |
227 typeName !is null ? typeName.id : null); | 227 typeName !is null ? typeName.id_ : null); |
228 return result !is null ? this : null; | 228 return result !is null ? this : null; |
229 } | 229 } |
230 | 230 |
231 public NSDocument initWithContentsOfURL_ofType_ (NSURL absoluteURL, NSString typeName) | 231 public NSDocument initWithContentsOfURL_ofType_ (NSURL absoluteURL, NSString typeName) |
232 { | 232 { |
233 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithContentsOfURL_1ofType_1, absoluteURL !is null ? absoluteURL.id : null, | 233 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithContentsOfURL_1ofType_1, absoluteURL !is null ? absoluteURL.id_ : null, |
234 typeName !is null ? typeName.id : null); | 234 typeName !is null ? typeName.id_ : null); |
235 return result !is null ? this : null; | 235 return result !is null ? this : null; |
236 } | 236 } |
237 | 237 |
238 public NSDocument initWithContentsOfURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) | 238 public NSDocument initWithContentsOfURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) |
239 { | 239 { |
240 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithContentsOfURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 240 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithContentsOfURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
241 typeName !is null ? typeName.id : null, outError); | 241 typeName !is null ? typeName.id_ : null, outError); |
242 return result !is null ? this : null; | 242 return result !is null ? this : null; |
243 } | 243 } |
244 | 244 |
245 public NSDocument initWithType (NSString typeName, objc.id** outError) | 245 public NSDocument initWithType (NSString typeName, objc.id** outError) |
246 { | 246 { |
247 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithType_1error_1, typeName !is null ? typeName.id : null, outError); | 247 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithType_1error_1, typeName !is null ? typeName.id_ : null, outError); |
248 return result !is null ? this : null; | 248 return result !is null ? this : null; |
249 } | 249 } |
250 | 250 |
251 public bool isDocumentEdited () | 251 public bool isDocumentEdited () |
252 { | 252 { |
253 return OS.objc_msgSend(this.id, OS.sel_isDocumentEdited) !is null; | 253 return OS.objc_msgSend(this.id_, OS.sel_isDocumentEdited) !is null; |
254 } | 254 } |
255 | 255 |
256 public static bool isNativeType (NSString type) | 256 public static bool isNativeType (NSString type) |
257 { | 257 { |
258 return OS.objc_msgSend(OS.class_NSDocument, OS.sel_isNativeType_1, type !is null ? type.id : null) !is null; | 258 return OS.objc_msgSend(OS.class_NSDocument, OS.sel_isNativeType_1, type !is null ? type.id_ : null) !is null; |
259 } | 259 } |
260 | 260 |
261 public bool keepBackupFile () | 261 public bool keepBackupFile () |
262 { | 262 { |
263 return OS.objc_msgSend(this.id, OS.sel_keepBackupFile) !is null; | 263 return OS.objc_msgSend(this.id_, OS.sel_keepBackupFile) !is null; |
264 } | 264 } |
265 | 265 |
266 public NSString lastComponentOfFileName () | 266 public NSString lastComponentOfFileName () |
267 { | 267 { |
268 objc.id result = OS.objc_msgSend(this.id, OS.sel_lastComponentOfFileName); | 268 objc.id result = OS.objc_msgSend(this.id_, OS.sel_lastComponentOfFileName); |
269 return result !is null ? new NSString(result) : null; | 269 return result !is null ? new NSString(result) : null; |
270 } | 270 } |
271 | 271 |
272 public bool loadDataRepresentation (NSData data, NSString type) | 272 public bool loadDataRepresentation (NSData data, NSString type) |
273 { | 273 { |
274 return OS.objc_msgSend(this.id, OS.sel_loadDataRepresentation_1ofType_1, data !is null ? data.id : null, type !is null ? type.id : null) !is null; | 274 return OS.objc_msgSend(this.id_, OS.sel_loadDataRepresentation_1ofType_1, data !is null ? data.id_ : null, type !is null ? type.id_ : null) !is null; |
275 } | 275 } |
276 | 276 |
277 public bool loadFileWrapperRepresentation (NSFileWrapper wrapper, NSString type) | 277 public bool loadFileWrapperRepresentation (NSFileWrapper wrapper, NSString type) |
278 { | 278 { |
279 return OS.objc_msgSend(this.id, OS.sel_loadFileWrapperRepresentation_1ofType_1, wrapper !is null ? wrapper.id : null, | 279 return OS.objc_msgSend(this.id_, OS.sel_loadFileWrapperRepresentation_1ofType_1, wrapper !is null ? wrapper.id_ : null, |
280 type !is null ? type.id : null) !is null; | 280 type !is null ? type.id_ : null) !is null; |
281 } | 281 } |
282 | 282 |
283 public void makeWindowControllers () | 283 public void makeWindowControllers () |
284 { | 284 { |
285 OS.objc_msgSend(this.id, OS.sel_makeWindowControllers); | 285 OS.objc_msgSend(this.id_, OS.sel_makeWindowControllers); |
286 } | 286 } |
287 | 287 |
288 public NSScriptObjectSpecifier objectSpecifier () | 288 public NSScriptObjectSpecifier objectSpecifier () |
289 { | 289 { |
290 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectSpecifier); | 290 objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectSpecifier); |
291 return result !is null ? new NSScriptObjectSpecifier(result) : null; | 291 return result !is null ? new NSScriptObjectSpecifier(result) : null; |
292 } | 292 } |
293 | 293 |
294 public bool preparePageLayout (NSPageLayout pageLayout) | 294 public bool preparePageLayout (NSPageLayout pageLayout) |
295 { | 295 { |
296 return OS.objc_msgSend(this.id, OS.sel_preparePageLayout_1, pageLayout !is null ? pageLayout.id : null) !is null; | 296 return OS.objc_msgSend(this.id_, OS.sel_preparePageLayout_1, pageLayout !is null ? pageLayout.id_ : null) !is null; |
297 } | 297 } |
298 | 298 |
299 public bool prepareSavePanel (NSSavePanel savePanel) | 299 public bool prepareSavePanel (NSSavePanel savePanel) |
300 { | 300 { |
301 return OS.objc_msgSend(this.id, OS.sel_prepareSavePanel_1, savePanel !is null ? savePanel.id : null) !is null; | 301 return OS.objc_msgSend(this.id_, OS.sel_prepareSavePanel_1, savePanel !is null ? savePanel.id_ : null) !is null; |
302 } | 302 } |
303 | 303 |
304 public bool presentError_ (NSError error) | 304 public bool presentError_ (NSError error) |
305 { | 305 { |
306 return OS.objc_msgSend(this.id, OS.sel_presentError_1, error !is null ? error.id : null) !is null; | 306 return OS.objc_msgSend(this.id_, OS.sel_presentError_1, error !is null ? error.id_ : null) !is null; |
307 } | 307 } |
308 | 308 |
309 public void presentError_modalForWindow_delegatee_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee, | 309 public void presentError_modalForWindow_delegatee_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee, |
310 objc.SEL didPresentSelector, void* contextInfo) | 310 objc.SEL didPresentSelector, void* contextInfo) |
311 { | 311 { |
312 OS.objc_msgSend(this.id, OS.sel_presentError_1modalForWindow_1delegatee_1didPresentSelector_1contextInfo_1, error !is null ? error.id : null, | 312 OS.objc_msgSend(this.id_, OS.sel_presentError_1modalForWindow_1delegate_1didPresentSelector_1contextInfo_1, error !is null ? error.id_ : null, |
313 window !is null ? window.id : null, delegatee !is null ? delegatee.id : null, didPresentSelector, contextInfo); | 313 window !is null ? window.id_ : null, delegatee !is null ? delegatee.id_ : null, didPresentSelector, contextInfo); |
314 } | 314 } |
315 | 315 |
316 public void printDocument (id sender) | 316 public void printDocument (id sender) |
317 { | 317 { |
318 OS.objc_msgSend(this.id, OS.sel_printDocument_1, sender !is null ? sender.id : null); | 318 OS.objc_msgSend(this.id_, OS.sel_printDocument_1, sender !is null ? sender.id_ : null); |
319 } | 319 } |
320 | 320 |
321 public void printDocumentWithSettings (NSDictionary printSettings, bool showPrintPanel, id delegatee, objc.SEL didPrintSelector, | 321 public void printDocumentWithSettings (NSDictionary printSettings, bool showPrintPanel, id delegatee, objc.SEL didPrintSelector, |
322 void* contextInfo) | 322 void* contextInfo) |
323 { | 323 { |
324 OS.objc_msgSend(this.id, OS.sel_printDocumentWithSettings_1showPrintPanel_1delegatee_1didPrintSelector_1contextInfo_1, | 324 OS.objc_msgSend(this.id_, OS.sel_printDocumentWithSettings_1showPrintPanel_1delegate_1didPrintSelector_1contextInfo_1, |
325 printSettings !is null ? printSettings.id : null, showPrintPanel, delegatee !is null ? delegatee.id : null, didPrintSelector, | 325 printSettings !is null ? printSettings.id_ : null, showPrintPanel, delegatee !is null ? delegatee.id_ : null, didPrintSelector, |
326 contextInfo); | 326 contextInfo); |
327 } | 327 } |
328 | 328 |
329 public NSPrintInfo printInfo () | 329 public NSPrintInfo printInfo () |
330 { | 330 { |
331 objc.id result = OS.objc_msgSend(this.id, OS.sel_printInfo); | 331 objc.id result = OS.objc_msgSend(this.id_, OS.sel_printInfo); |
332 return result !is null ? new NSPrintInfo(result) : null; | 332 return result !is null ? new NSPrintInfo(result) : null; |
333 } | 333 } |
334 | 334 |
335 public NSPrintOperation printOperationWithSettings (NSDictionary printSettings, objc.id** outError) | 335 public NSPrintOperation printOperationWithSettings (NSDictionary printSettings, objc.id** outError) |
336 { | 336 { |
337 objc.id result = OS.objc_msgSend(this.id, OS.sel_printOperationWithSettings_1error_1, printSettings !is null ? printSettings.id : null, | 337 objc.id result = OS.objc_msgSend(this.id_, OS.sel_printOperationWithSettings_1error_1, printSettings !is null ? printSettings.id_ : null, |
338 outError); | 338 outError); |
339 return result !is null ? new NSPrintOperation(result) : null; | 339 return result !is null ? new NSPrintOperation(result) : null; |
340 } | 340 } |
341 | 341 |
342 public void printShowingPrintPanel (bool flag) | 342 public void printShowingPrintPanel (bool flag) |
343 { | 343 { |
344 OS.objc_msgSend(this.id, OS.sel_printShowingPrintPanel_1, flag); | 344 OS.objc_msgSend(this.id_, OS.sel_printShowingPrintPanel_1, flag); |
345 } | 345 } |
346 | 346 |
347 public bool readFromData (NSData data, NSString typeName, objc.id** outError) | 347 public bool readFromData (NSData data, NSString typeName, objc.id** outError) |
348 { | 348 { |
349 return OS.objc_msgSend(this.id, OS.sel_readFromData_1ofType_1error_1, data !is null ? data.id : null, typeName !is null ? typeName.id : null, | 349 return OS.objc_msgSend(this.id_, OS.sel_readFromData_1ofType_1error_1, data !is null ? data.id_ : null, typeName !is null ? typeName.id_ : null, |
350 outError) !is null; | 350 outError) !is null; |
351 } | 351 } |
352 | 352 |
353 public bool readFromFile (NSString fileName, NSString type) | 353 public bool readFromFile (NSString fileName, NSString type) |
354 { | 354 { |
355 return OS.objc_msgSend(this.id, OS.sel_readFromFile_1ofType_1, fileName !is null ? fileName.id : null, type !is null ? type.id : null) !is null; | 355 return OS.objc_msgSend(this.id_, OS.sel_readFromFile_1ofType_1, fileName !is null ? fileName.id_ : null, type !is null ? type.id_ : null) !is null; |
356 } | 356 } |
357 | 357 |
358 public bool readFromFileWrapper (NSFileWrapper fileWrapper, NSString typeName, objc.id** outError) | 358 public bool readFromFileWrapper (NSFileWrapper fileWrapper, NSString typeName, objc.id** outError) |
359 { | 359 { |
360 return OS.objc_msgSend(this.id, OS.sel_readFromFileWrapper_1ofType_1error_1, fileWrapper !is null ? fileWrapper.id : null, | 360 return OS.objc_msgSend(this.id_, OS.sel_readFromFileWrapper_1ofType_1error_1, fileWrapper !is null ? fileWrapper.id_ : null, |
361 typeName !is null ? typeName.id : null, outError) !is null; | 361 typeName !is null ? typeName.id_ : null, outError) !is null; |
362 } | 362 } |
363 | 363 |
364 public bool readFromURL_ofType_ (NSURL url, NSString type) | 364 public bool readFromURL_ofType_ (NSURL url, NSString type) |
365 { | 365 { |
366 return OS.objc_msgSend(this.id, OS.sel_readFromURL_1ofType_1, url !is null ? url.id : null, type !is null ? type.id : null) !is null; | 366 return OS.objc_msgSend(this.id_, OS.sel_readFromURL_1ofType_1, url !is null ? url.id_ : null, type !is null ? type.id_ : null) !is null; |
367 } | 367 } |
368 | 368 |
369 public bool readFromURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) | 369 public bool readFromURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) |
370 { | 370 { |
371 return OS.objc_msgSend(this.id, OS.sel_readFromURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 371 return OS.objc_msgSend(this.id_, OS.sel_readFromURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
372 typeName !is null ? typeName.id : null, outError) !is null; | 372 typeName !is null ? typeName.id_ : null, outError) !is null; |
373 } | 373 } |
374 | 374 |
375 public static NSArray readableTypes () | 375 public static NSArray readableTypes () |
376 { | 376 { |
377 objc.id result = OS.objc_msgSend(OS.class_NSDocument, OS.sel_readableTypes); | 377 objc.id result = OS.objc_msgSend(OS.class_NSDocument, OS.sel_readableTypes); |
378 return result !is null ? new NSArray(result) : null; | 378 return result !is null ? new NSArray(result) : null; |
379 } | 379 } |
380 | 380 |
381 public void removeWindowController (NSWindowController windowController) | 381 public void removeWindowController (NSWindowController windowController) |
382 { | 382 { |
383 OS.objc_msgSend(this.id, OS.sel_removeWindowController_1, windowController !is null ? windowController.id : null); | 383 OS.objc_msgSend(this.id_, OS.sel_removeWindowController_1, windowController !is null ? windowController.id_ : null); |
384 } | 384 } |
385 | 385 |
386 public void revertDocumentToSaved (id sender) | 386 public void revertDocumentToSaved (id sender) |
387 { | 387 { |
388 OS.objc_msgSend(this.id, OS.sel_revertDocumentToSaved_1, sender !is null ? sender.id : null); | 388 OS.objc_msgSend(this.id_, OS.sel_revertDocumentToSaved_1, sender !is null ? sender.id_ : null); |
389 } | 389 } |
390 | 390 |
391 public bool revertToContentsOfURL (NSURL absoluteURL, NSString typeName, objc.id** outError) | 391 public bool revertToContentsOfURL (NSURL absoluteURL, NSString typeName, objc.id** outError) |
392 { | 392 { |
393 return OS.objc_msgSend(this.id, OS.sel_revertToContentsOfURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 393 return OS.objc_msgSend(this.id_, OS.sel_revertToContentsOfURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
394 typeName !is null ? typeName.id : null, outError) !is null; | 394 typeName !is null ? typeName.id_ : null, outError) !is null; |
395 } | 395 } |
396 | 396 |
397 public bool revertToSavedFromFile (NSString fileName, NSString type) | 397 public bool revertToSavedFromFile (NSString fileName, NSString type) |
398 { | 398 { |
399 return OS.objc_msgSend(this.id, OS.sel_revertToSavedFromFile_1ofType_1, fileName !is null ? fileName.id : null, | 399 return OS.objc_msgSend(this.id_, OS.sel_revertToSavedFromFile_1ofType_1, fileName !is null ? fileName.id_ : null, |
400 type !is null ? type.id : null) !is null; | 400 type !is null ? type.id_ : null) !is null; |
401 } | 401 } |
402 | 402 |
403 public bool revertToSavedFromURL (NSURL url, NSString type) | 403 public bool revertToSavedFromURL (NSURL url, NSString type) |
404 { | 404 { |
405 return OS.objc_msgSend(this.id, OS.sel_revertToSavedFromURL_1ofType_1, url !is null ? url.id : null, type !is null ? type.id : null) !is null; | 405 return OS.objc_msgSend(this.id_, OS.sel_revertToSavedFromURL_1ofType_1, url !is null ? url.id_ : null, type !is null ? type.id_ : null) !is null; |
406 } | 406 } |
407 | 407 |
408 public NSInteger runModalPageLayoutWithPrintInfo_ (NSPrintInfo printInfo) | 408 public NSInteger runModalPageLayoutWithPrintInfo_ (NSPrintInfo printInfo) |
409 { | 409 { |
410 return OS.objc_msgSend(this.id, OS.sel_runModalPageLayoutWithPrintInfo_1, printInfo !is null ? printInfo.id : null); | 410 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_runModalPageLayoutWithPrintInfo_1, printInfo !is null ? printInfo.id_ : null); |
411 } | 411 } |
412 | 412 |
413 public void runModalPageLayoutWithPrintInfo_delegatee_didRunSelector_contextInfo_ (NSPrintInfo printInfo, id delegatee, objc.SEL didRunSelector, | 413 public void runModalPageLayoutWithPrintInfo_delegatee_didRunSelector_contextInfo_ (NSPrintInfo printInfo, id delegatee, objc.SEL didRunSelector, |
414 void* contextInfo) | 414 void* contextInfo) |
415 { | 415 { |
416 OS.objc_msgSend(this.id, OS.sel_runModalPageLayoutWithPrintInfo_1delegatee_1didRunSelector_1contextInfo_1, | 416 OS.objc_msgSend(this.id_, OS.sel_runModalPageLayoutWithPrintInfo_1delegate_1didRunSelector_1contextInfo_1, |
417 printInfo !is null ? printInfo.id : null, delegatee !is null ? delegatee.id : null, didRunSelector, contextInfo); | 417 printInfo !is null ? printInfo.id_ : null, delegatee !is null ? delegatee.id_ : null, didRunSelector, contextInfo); |
418 } | 418 } |
419 | 419 |
420 public void runModalPrintOperation (NSPrintOperation printOperation, id delegatee, objc.SEL didRunSelector, void* contextInfo) | 420 public void runModalPrintOperation (NSPrintOperation printOperation, id delegatee, objc.SEL didRunSelector, void* contextInfo) |
421 { | 421 { |
422 OS.objc_msgSend(this.id, OS.sel_runModalPrintOperation_1delegatee_1didRunSelector_1contextInfo_1, | 422 OS.objc_msgSend(this.id_, OS.sel_runModalPrintOperation_1delegate_1didRunSelector_1contextInfo_1, |
423 printOperation !is null ? printOperation.id : null, delegatee !is null ? delegatee.id : null, didRunSelector, contextInfo); | 423 printOperation !is null ? printOperation.id_ : null, delegatee !is null ? delegatee.id_ : null, didRunSelector, contextInfo); |
424 } | 424 } |
425 | 425 |
426 public void runModalSavePanelForSaveOperation (objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) | 426 public void runModalSavePanelForSaveOperation (objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) |
427 { | 427 { |
428 OS.objc_msgSend(this.id, OS.sel_runModalSavePanelForSaveOperation_1delegatee_1didSaveSelector_1contextInfo_1, saveOperation, | 428 OS.objc_msgSend(this.id_, OS.sel_runModalSavePanelForSaveOperation_1delegate_1didSaveSelector_1contextInfo_1, saveOperation, |
429 delegatee !is null ? delegatee.id : null, didSaveSelector, contextInfo); | 429 delegatee !is null ? delegatee.id_ : null, didSaveSelector, contextInfo); |
430 } | 430 } |
431 | 431 |
432 public void runPageLayout (id sender) | 432 public void runPageLayout (id sender) |
433 { | 433 { |
434 OS.objc_msgSend(this.id, OS.sel_runPageLayout_1, sender !is null ? sender.id : null); | 434 OS.objc_msgSend(this.id_, OS.sel_runPageLayout_1, sender !is null ? sender.id_ : null); |
435 } | 435 } |
436 | 436 |
437 public void saveDocument (id sender) | 437 public void saveDocument (id sender) |
438 { | 438 { |
439 OS.objc_msgSend(this.id, OS.sel_saveDocument_1, sender !is null ? sender.id : null); | 439 OS.objc_msgSend(this.id_, OS.sel_saveDocument_1, sender !is null ? sender.id_ : null); |
440 } | 440 } |
441 | 441 |
442 public void saveDocumentAs (id sender) | 442 public void saveDocumentAs (id sender) |
443 { | 443 { |
444 OS.objc_msgSend(this.id, OS.sel_saveDocumentAs_1, sender !is null ? sender.id : null); | 444 OS.objc_msgSend(this.id_, OS.sel_saveDocumentAs_1, sender !is null ? sender.id_ : null); |
445 } | 445 } |
446 | 446 |
447 public void saveDocumentTo (id sender) | 447 public void saveDocumentTo (id sender) |
448 { | 448 { |
449 OS.objc_msgSend(this.id, OS.sel_saveDocumentTo_1, sender !is null ? sender.id : null); | 449 OS.objc_msgSend(this.id_, OS.sel_saveDocumentTo_1, sender !is null ? sender.id_ : null); |
450 } | 450 } |
451 | 451 |
452 public void saveDocumentWithDelegate (id delegatee, objc.SEL didSaveSelector, void* contextInfo) | 452 public void saveDocumentWithDelegate (id delegatee, objc.SEL didSaveSelector, void* contextInfo) |
453 { | 453 { |
454 OS.objc_msgSend(this.id, OS.sel_saveDocumentWithDelegate_1didSaveSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, | 454 OS.objc_msgSend(this.id_, OS.sel_saveDocumentWithDelegate_1didSaveSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null, |
455 didSaveSelector, contextInfo); | 455 didSaveSelector, contextInfo); |
456 } | 456 } |
457 | 457 |
458 public void saveToFile (NSString fileName, objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) | 458 public void saveToFile (NSString fileName, objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) |
459 { | 459 { |
460 OS.objc_msgSend(this.id, OS.sel_saveToFile_1saveOperation_1delegatee_1didSaveSelector_1contextInfo_1, fileName !is null ? fileName.id : null, | 460 OS.objc_msgSend(this.id_, OS.sel_saveToFile_1saveOperation_1delegate_1didSaveSelector_1contextInfo_1, fileName !is null ? fileName.id_ : null, |
461 saveOperation, delegatee !is null ? delegatee.id : null, didSaveSelector, contextInfo); | 461 saveOperation, delegatee !is null ? delegatee.id_ : null, didSaveSelector, contextInfo); |
462 } | 462 } |
463 | 463 |
464 public void saveToURL_ofType_forSaveOperation_delegatee_didSaveSelector_contextInfo_ (NSURL absoluteURL, NSString typeName, | 464 public void saveToURL_ofType_forSaveOperation_delegatee_didSaveSelector_contextInfo_ (NSURL absoluteURL, NSString typeName, |
465 objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) | 465 objc.id saveOperation, id delegatee, objc.SEL didSaveSelector, void* contextInfo) |
466 { | 466 { |
467 OS.objc_msgSend(this.id, OS.sel_saveToURL_1ofType_1forSaveOperation_1delegatee_1didSaveSelector_1contextInfo_1, | 467 OS.objc_msgSend(this.id_, OS.sel_saveToURL_1ofType_1forSaveOperation_1delegate_1didSaveSelector_1contextInfo_1, |
468 absoluteURL !is null ? absoluteURL.id : null, typeName !is null ? typeName.id : null, saveOperation, | 468 absoluteURL !is null ? absoluteURL.id_ : null, typeName !is null ? typeName.id_ : null, saveOperation, |
469 delegatee !is null ? delegatee.id : null, didSaveSelector, contextInfo); | 469 delegatee !is null ? delegatee.id_ : null, didSaveSelector, contextInfo); |
470 } | 470 } |
471 | 471 |
472 public bool saveToURL_ofType_forSaveOperation_error_ (NSURL absoluteURL, NSString typeName, objc.id saveOperation, objc.id** outError) | 472 public bool saveToURL_ofType_forSaveOperation_error_ (NSURL absoluteURL, NSString typeName, objc.id saveOperation, objc.id** outError) |
473 { | 473 { |
474 return OS.objc_msgSend(this.id, OS.sel_saveToURL_1ofType_1forSaveOperation_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 474 return OS.objc_msgSend(this.id_, OS.sel_saveToURL_1ofType_1forSaveOperation_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
475 typeName !is null ? typeName.id : null, saveOperation, outError) !is null; | 475 typeName !is null ? typeName.id_ : null, saveOperation, outError) !is null; |
476 } | 476 } |
477 | 477 |
478 public void setAutosavedContentsFileURL (NSURL absoluteURL) | 478 public void setAutosavedContentsFileURL (NSURL absoluteURL) |
479 { | 479 { |
480 OS.objc_msgSend(this.id, OS.sel_setAutosavedContentsFileURL_1, absoluteURL !is null ? absoluteURL.id : null); | 480 OS.objc_msgSend(this.id_, OS.sel_setAutosavedContentsFileURL_1, absoluteURL !is null ? absoluteURL.id_ : null); |
481 } | 481 } |
482 | 482 |
483 public void setFileModificationDate (NSDate modificationDate) | 483 public void setFileModificationDate (NSDate modificationDate) |
484 { | 484 { |
485 OS.objc_msgSend(this.id, OS.sel_setFileModificationDate_1, modificationDate !is null ? modificationDate.id : null); | 485 OS.objc_msgSend(this.id_, OS.sel_setFileModificationDate_1, modificationDate !is null ? modificationDate.id_ : null); |
486 } | 486 } |
487 | 487 |
488 public void setFileName (NSString fileName) | 488 public void setFileName (NSString fileName) |
489 { | 489 { |
490 OS.objc_msgSend(this.id, OS.sel_setFileName_1, fileName !is null ? fileName.id : null); | 490 OS.objc_msgSend(this.id_, OS.sel_setFileName_1, fileName !is null ? fileName.id_ : null); |
491 } | 491 } |
492 | 492 |
493 public void setFileType (NSString typeName) | 493 public void setFileType (NSString typeName) |
494 { | 494 { |
495 OS.objc_msgSend(this.id, OS.sel_setFileType_1, typeName !is null ? typeName.id : null); | 495 OS.objc_msgSend(this.id_, OS.sel_setFileType_1, typeName !is null ? typeName.id_ : null); |
496 } | 496 } |
497 | 497 |
498 public void setFileURL (NSURL absoluteURL) | 498 public void setFileURL (NSURL absoluteURL) |
499 { | 499 { |
500 OS.objc_msgSend(this.id, OS.sel_setFileURL_1, absoluteURL !is null ? absoluteURL.id : null); | 500 OS.objc_msgSend(this.id_, OS.sel_setFileURL_1, absoluteURL !is null ? absoluteURL.id_ : null); |
501 } | 501 } |
502 | 502 |
503 public void setHasUndoManager (bool hasUndoManager) | 503 public void setHasUndoManager (bool hasUndoManager) |
504 { | 504 { |
505 OS.objc_msgSend(this.id, OS.sel_setHasUndoManager_1, hasUndoManager); | 505 OS.objc_msgSend(this.id_, OS.sel_setHasUndoManager_1, hasUndoManager); |
506 } | 506 } |
507 | 507 |
508 public void setLastComponentOfFileName (NSString str) | 508 public void setLastComponentOfFileName (NSString str) |
509 { | 509 { |
510 OS.objc_msgSend(this.id, OS.sel_setLastComponentOfFileName_1, str !is null ? str.id : null); | 510 OS.objc_msgSend(this.id_, OS.sel_setLastComponentOfFileName_1, str !is null ? str.id_ : null); |
511 } | 511 } |
512 | 512 |
513 public void setPrintInfo (NSPrintInfo printInfo) | 513 public void setPrintInfo (NSPrintInfo printInfo) |
514 { | 514 { |
515 OS.objc_msgSend(this.id, OS.sel_setPrintInfo_1, printInfo !is null ? printInfo.id : null); | 515 OS.objc_msgSend(this.id_, OS.sel_setPrintInfo_1, printInfo !is null ? printInfo.id_ : null); |
516 } | 516 } |
517 | 517 |
518 public void setUndoManager (NSUndoManager undoManager) | 518 public void setUndoManager (NSUndoManager undoManager) |
519 { | 519 { |
520 OS.objc_msgSend(this.id, OS.sel_setUndoManager_1, undoManager !is null ? undoManager.id : null); | 520 OS.objc_msgSend(this.id_, OS.sel_setUndoManager_1, undoManager !is null ? undoManager.id_ : null); |
521 } | 521 } |
522 | 522 |
523 public void setWindow (NSWindow window) | 523 public void setWindow (NSWindow window) |
524 { | 524 { |
525 OS.objc_msgSend(this.id, OS.sel_setWindow_1, window !is null ? window.id : null); | 525 OS.objc_msgSend(this.id_, OS.sel_setWindow_1, window !is null ? window.id_ : null); |
526 } | 526 } |
527 | 527 |
528 public bool shouldChangePrintInfo (NSPrintInfo newPrintInfo) | 528 public bool shouldChangePrintInfo (NSPrintInfo newPrintInfo) |
529 { | 529 { |
530 return OS.objc_msgSend(this.id, OS.sel_shouldChangePrintInfo_1, newPrintInfo !is null ? newPrintInfo.id : null) !is null; | 530 return OS.objc_msgSend(this.id_, OS.sel_shouldChangePrintInfo_1, newPrintInfo !is null ? newPrintInfo.id_ : null) !is null; |
531 } | 531 } |
532 | 532 |
533 public void shouldCloseWindowController (NSWindowController windowController, id delegatee, objc.SEL shouldCloseSelector, void* contextInfo) | 533 public void shouldCloseWindowController (NSWindowController windowController, id delegatee, objc.SEL shouldCloseSelector, void* contextInfo) |
534 { | 534 { |
535 OS.objc_msgSend(this.id, OS.sel_shouldCloseWindowController_1delegatee_1shouldCloseSelector_1contextInfo_1, | 535 OS.objc_msgSend(this.id_, OS.sel_shouldCloseWindowController_1delegate_1shouldCloseSelector_1contextInfo_1, |
536 windowController !is null ? windowController.id : null, delegatee !is null ? delegatee.id : null, shouldCloseSelector, contextInfo); | 536 windowController !is null ? windowController.id_ : null, delegatee !is null ? delegatee.id_ : null, shouldCloseSelector, contextInfo); |
537 } | 537 } |
538 | 538 |
539 public bool shouldRunSavePanelWithAccessoryView () | 539 public bool shouldRunSavePanelWithAccessoryView () |
540 { | 540 { |
541 return OS.objc_msgSend(this.id, OS.sel_shouldRunSavePanelWithAccessoryView) !is null; | 541 return OS.objc_msgSend(this.id_, OS.sel_shouldRunSavePanelWithAccessoryView) !is null; |
542 } | 542 } |
543 | 543 |
544 public void showWindows () | 544 public void showWindows () |
545 { | 545 { |
546 OS.objc_msgSend(this.id, OS.sel_showWindows); | 546 OS.objc_msgSend(this.id_, OS.sel_showWindows); |
547 } | 547 } |
548 | 548 |
549 public NSUndoManager undoManager () | 549 public NSUndoManager undoManager () |
550 { | 550 { |
551 objc.id result = OS.objc_msgSend(this.id, OS.sel_undoManager); | 551 objc.id result = OS.objc_msgSend(this.id_, OS.sel_undoManager); |
552 return result !is null ? new NSUndoManager(result) : null; | 552 return result !is null ? new NSUndoManager(result) : null; |
553 } | 553 } |
554 | 554 |
555 public void updateChangeCount (objc.id change) | 555 public void updateChangeCount (objc.id change) |
556 { | 556 { |
557 OS.objc_msgSend(this.id, OS.sel_updateChangeCount_1, change); | 557 OS.objc_msgSend(this.id_, OS.sel_updateChangeCount_1, change); |
558 } | 558 } |
559 | 559 |
560 public bool validateUserInterfaceItem (id anItem) | 560 public bool validateUserInterfaceItem (id anItem) |
561 { | 561 { |
562 return OS.objc_msgSend(this.id, OS.sel_validateUserInterfaceItem_1, anItem !is null ? anItem.id : null) !is null; | 562 return OS.objc_msgSend(this.id_, OS.sel_validateUserInterfaceItem_1, anItem !is null ? anItem.id_ : null) !is null; |
563 } | 563 } |
564 | 564 |
565 public NSError willPresentError (NSError error) | 565 public NSError willPresentError (NSError error) |
566 { | 566 { |
567 objc.id result = OS.objc_msgSend(this.id, OS.sel_willPresentError_1, error !is null ? error.id : null); | 567 objc.id result = OS.objc_msgSend(this.id_, OS.sel_willPresentError_1, error !is null ? error.id_ : null); |
568 return result !is null ? new NSError(result) : null; | 568 return result !is null ? new NSError(result) : null; |
569 } | 569 } |
570 | 570 |
571 public void windowControllerDidLoadNib (NSWindowController windowController) | 571 public void windowControllerDidLoadNib (NSWindowController windowController) |
572 { | 572 { |
573 OS.objc_msgSend(this.id, OS.sel_windowControllerDidLoadNib_1, windowController !is null ? windowController.id : null); | 573 OS.objc_msgSend(this.id_, OS.sel_windowControllerDidLoadNib_1, windowController !is null ? windowController.id_ : null); |
574 } | 574 } |
575 | 575 |
576 public void windowControllerWillLoadNib (NSWindowController windowController) | 576 public void windowControllerWillLoadNib (NSWindowController windowController) |
577 { | 577 { |
578 OS.objc_msgSend(this.id, OS.sel_windowControllerWillLoadNib_1, windowController !is null ? windowController.id : null); | 578 OS.objc_msgSend(this.id_, OS.sel_windowControllerWillLoadNib_1, windowController !is null ? windowController.id_ : null); |
579 } | 579 } |
580 | 580 |
581 public NSArray windowControllers () | 581 public NSArray windowControllers () |
582 { | 582 { |
583 objc.id result = OS.objc_msgSend(this.id, OS.sel_windowControllers); | 583 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windowControllers); |
584 return result !is null ? new NSArray(result) : null; | 584 return result !is null ? new NSArray(result) : null; |
585 } | 585 } |
586 | 586 |
587 public NSWindow windowForSheet () | 587 public NSWindow windowForSheet () |
588 { | 588 { |
589 objc.id result = OS.objc_msgSend(this.id, OS.sel_windowForSheet); | 589 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windowForSheet); |
590 return result !is null ? new NSWindow(result) : null; | 590 return result !is null ? new NSWindow(result) : null; |
591 } | 591 } |
592 | 592 |
593 public NSString windowNibName () | 593 public NSString windowNibName () |
594 { | 594 { |
595 objc.id result = OS.objc_msgSend(this.id, OS.sel_windowNibName); | 595 objc.id result = OS.objc_msgSend(this.id_, OS.sel_windowNibName); |
596 return result !is null ? new NSString(result) : null; | 596 return result !is null ? new NSString(result) : null; |
597 } | 597 } |
598 | 598 |
599 public static NSArray writableTypes () | 599 public static NSArray writableTypes () |
600 { | 600 { |
602 return result !is null ? new NSArray(result) : null; | 602 return result !is null ? new NSArray(result) : null; |
603 } | 603 } |
604 | 604 |
605 public NSArray writableTypesForSaveOperation (objc.id saveOperation) | 605 public NSArray writableTypesForSaveOperation (objc.id saveOperation) |
606 { | 606 { |
607 objc.id result = OS.objc_msgSend(this.id, OS.sel_writableTypesForSaveOperation_1, saveOperation); | 607 objc.id result = OS.objc_msgSend(this.id_, OS.sel_writableTypesForSaveOperation_1, saveOperation); |
608 return result !is null ? new NSArray(result) : null; | 608 return result !is null ? new NSArray(result) : null; |
609 } | 609 } |
610 | 610 |
611 public bool writeSafelyToURL (NSURL absoluteURL, NSString typeName, objc.id saveOperation, objc.id** outError) | 611 public bool writeSafelyToURL (NSURL absoluteURL, NSString typeName, objc.id saveOperation, objc.id** outError) |
612 { | 612 { |
613 return OS.objc_msgSend(this.id, OS.sel_writeSafelyToURL_1ofType_1forSaveOperation_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 613 return OS.objc_msgSend(this.id_, OS.sel_writeSafelyToURL_1ofType_1forSaveOperation_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
614 typeName !is null ? typeName.id : null, saveOperation, outError) !is null; | 614 typeName !is null ? typeName.id_ : null, saveOperation, outError) !is null; |
615 } | 615 } |
616 | 616 |
617 public bool writeToFile_ofType_ (NSString fileName, NSString type) | 617 public bool writeToFile_ofType_ (NSString fileName, NSString type) |
618 { | 618 { |
619 return OS.objc_msgSend(this.id, OS.sel_writeToFile_1ofType_1, fileName !is null ? fileName.id : null, type !is null ? type.id : null) !is null; | 619 return OS.objc_msgSend(this.id_, OS.sel_writeToFile_1ofType_1, fileName !is null ? fileName.id_ : null, type !is null ? type.id_ : null) !is null; |
620 } | 620 } |
621 | 621 |
622 public bool writeToFile_ofType_originalFile_saveOperation_ (NSString fullDocumentPath, NSString documentTypeName, | 622 public bool writeToFile_ofType_originalFile_saveOperation_ (NSString fullDocumentPath, NSString documentTypeName, |
623 NSString fullOriginalDocumentPath, objc.id saveOperationType) | 623 NSString fullOriginalDocumentPath, objc.id saveOperationType) |
624 { | 624 { |
625 return OS.objc_msgSend(this.id, OS.sel_writeToFile_1ofType_1originalFile_1saveOperation_1, | 625 return OS.objc_msgSend(this.id_, OS.sel_writeToFile_1ofType_1originalFile_1saveOperation_1, |
626 fullDocumentPath !is null ? fullDocumentPath.id : null, documentTypeName !is null ? documentTypeName.id : null, | 626 fullDocumentPath !is null ? fullDocumentPath.id_ : null, documentTypeName !is null ? documentTypeName.id_ : null, |
627 fullOriginalDocumentPath !is null ? fullOriginalDocumentPath.id : null, saveOperationType) !is null; | 627 fullOriginalDocumentPath !is null ? fullOriginalDocumentPath.id_ : null, saveOperationType) !is null; |
628 } | 628 } |
629 | 629 |
630 public bool writeToURL_ofType_ (NSURL url, NSString type) | 630 public bool writeToURL_ofType_ (NSURL url, NSString type) |
631 { | 631 { |
632 return OS.objc_msgSend(this.id, OS.sel_writeToURL_1ofType_1, url !is null ? url.id : null, type !is null ? type.id : null) !is null; | 632 return OS.objc_msgSend(this.id_, OS.sel_writeToURL_1ofType_1, url !is null ? url.id_ : null, type !is null ? type.id_ : null) !is null; |
633 } | 633 } |
634 | 634 |
635 public bool writeToURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) | 635 public bool writeToURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) |
636 { | 636 { |
637 return OS.objc_msgSend(this.id, OS.sel_writeToURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id : null, | 637 return OS.objc_msgSend(this.id_, OS.sel_writeToURL_1ofType_1error_1, absoluteURL !is null ? absoluteURL.id_ : null, |
638 typeName !is null ? typeName.id : null, outError) !is null; | 638 typeName !is null ? typeName.id_ : null, outError) !is null; |
639 } | 639 } |
640 | 640 |
641 public bool writeToURL_ofType_forSaveOperation_originalContentsURL_error_ (NSURL absoluteURL, NSString typeName, objc.id saveOperation, | 641 public bool writeToURL_ofType_forSaveOperation_originalContentsURL_error_ (NSURL absoluteURL, NSString typeName, objc.id saveOperation, |
642 NSURL absoluteOriginalContentsURL, objc.id** outError) | 642 NSURL absoluteOriginalContentsURL, objc.id** outError) |
643 { | 643 { |
644 return OS.objc_msgSend(this.id, OS.sel_writeToURL_1ofType_1forSaveOperation_1originalContentsURL_1error_1, | 644 return OS.objc_msgSend(this.id_, OS.sel_writeToURL_1ofType_1forSaveOperation_1originalContentsURL_1error_1, |
645 absoluteURL !is null ? absoluteURL.id : null, typeName !is null ? typeName.id : null, saveOperation, | 645 absoluteURL !is null ? absoluteURL.id_ : null, typeName !is null ? typeName.id_ : null, saveOperation, |
646 absoluteOriginalContentsURL !is null ? absoluteOriginalContentsURL.id : null, outError) !is null; | 646 absoluteOriginalContentsURL !is null ? absoluteOriginalContentsURL.id_ : null, outError) !is null; |
647 } | 647 } |
648 | 648 |
649 public bool writeWithBackupToFile (NSString fullDocumentPath, NSString documentTypeName, objc.id saveOperationType) | 649 public bool writeWithBackupToFile (NSString fullDocumentPath, NSString documentTypeName, objc.id saveOperationType) |
650 { | 650 { |
651 return OS.objc_msgSend(this.id, OS.sel_writeWithBackupToFile_1ofType_1saveOperation_1, | 651 return OS.objc_msgSend(this.id_, OS.sel_writeWithBackupToFile_1ofType_1saveOperation_1, |
652 fullDocumentPath !is null ? fullDocumentPath.id : null, documentTypeName !is null ? documentTypeName.id : null, saveOperationType) !is null; | 652 fullDocumentPath !is null ? fullDocumentPath.id_ : null, documentTypeName !is null ? documentTypeName.id_ : null, saveOperationType) !is null; |
653 } | 653 } |
654 | 654 |
655 } | 655 } |