Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSDocumentController.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 |
---|---|
39 super(id); | 39 super(id); |
40 } | 40 } |
41 | 41 |
42 public NSArray URLsFromRunningOpenPanel () | 42 public NSArray URLsFromRunningOpenPanel () |
43 { | 43 { |
44 objc.id result = OS.objc_msgSend(this.id, OS.sel_URLsFromRunningOpenPanel); | 44 objc.id result = OS.objc_msgSend(this.id_, OS.sel_URLsFromRunningOpenPanel); |
45 return result !is null ? new NSArray(result) : null; | 45 return result !is null ? new NSArray(result) : null; |
46 } | 46 } |
47 | 47 |
48 public void addDocument (NSDocument document) | 48 public void addDocument (NSDocument document) |
49 { | 49 { |
50 OS.objc_msgSend(this.id, OS.sel_addDocument_1, document !is null ? document.id : null); | 50 OS.objc_msgSend(this.id_, OS.sel_addDocument_1, document !is null ? document.id_ : null); |
51 } | 51 } |
52 | 52 |
53 public double autosavingDelay () | 53 public double autosavingDelay () |
54 { | 54 { |
55 return OS.objc_msgSend_fpret(this.id, OS.sel_autosavingDelay); | 55 return OS.objc_msgSend_fpret(this.id_, OS.sel_autosavingDelay); |
56 } | 56 } |
57 | 57 |
58 public void clearRecentDocuments (id sender) | 58 public void clearRecentDocuments (id sender) |
59 { | 59 { |
60 OS.objc_msgSend(this.id, OS.sel_clearRecentDocuments_1, sender !is null ? sender.id : null); | 60 OS.objc_msgSend(this.id_, OS.sel_clearRecentDocuments_1, sender !is null ? sender.id_ : null); |
61 } | 61 } |
62 | 62 |
63 public void closeAllDocumentsWithDelegate (id delegatee, objc.id didCloseAllSelector, void* contextInfo) | 63 public void closeAllDocumentsWithDelegate (id delegatee, objc.id didCloseAllSelector, void* contextInfo) |
64 { | 64 { |
65 OS.objc_msgSend(this.id, OS.sel_closeAllDocumentsWithDelegate_1didCloseAllSelector_1contextInfo_1, delegatee !is null ? delegatee.id : null, | 65 OS.objc_msgSend(this.id_, OS.sel_closeAllDocumentsWithDelegate_1didCloseAllSelector_1contextInfo_1, delegatee !is null ? delegatee.id_ : null, |
66 didCloseAllSelector, contextInfo); | 66 didCloseAllSelector, contextInfo); |
67 } | 67 } |
68 | 68 |
69 public NSString currentDirectory () | 69 public NSString currentDirectory () |
70 { | 70 { |
71 objc.id result = OS.objc_msgSend(this.id, OS.sel_currentDirectory); | 71 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currentDirectory); |
72 return result !is null ? new NSString(result) : null; | 72 return result !is null ? new NSString(result) : null; |
73 } | 73 } |
74 | 74 |
75 public id currentDocument () | 75 public id currentDocument () |
76 { | 76 { |
77 objc.id result = OS.objc_msgSend(this.id, OS.sel_currentDocument); | 77 objc.id result = OS.objc_msgSend(this.id_, OS.sel_currentDocument); |
78 return result !is null ? new id(result) : null; | 78 return result !is null ? new id(result) : null; |
79 } | 79 } |
80 | 80 |
81 public NSString defaultType () | 81 public NSString defaultType () |
82 { | 82 { |
83 objc.id result = OS.objc_msgSend(this.id, OS.sel_defaultType); | 83 objc.id result = OS.objc_msgSend(this.id_, OS.sel_defaultType); |
84 return result !is null ? new NSString(result) : null; | 84 return result !is null ? new NSString(result) : null; |
85 } | 85 } |
86 | 86 |
87 public NSString displayNameForType (NSString typeName) | 87 public NSString displayNameForType (NSString typeName) |
88 { | 88 { |
89 objc.id result = OS.objc_msgSend(this.id, OS.sel_displayNameForType_1, typeName !is null ? typeName.id : null); | 89 objc.id result = OS.objc_msgSend(this.id_, OS.sel_displayNameForType_1, typeName !is null ? typeName.id_ : null); |
90 return result !is null ? new NSString(result) : null; | 90 return result !is null ? new NSString(result) : null; |
91 } | 91 } |
92 | 92 |
93 public Class documentClassForType (NSString typeName) | 93 public objc.Class documentClassForType (NSString typeName) |
94 { | 94 { |
95 return OS.objc_msgSend(this.id, OS.sel_documentClassForType_1, typeName !is null ? typeName.id : null); | 95 return cast(objc.Class) OS.objc_msgSend(this.id_, OS.sel_documentClassForType_1, typeName !is null ? typeName.id_ : null); |
96 } | 96 } |
97 | 97 |
98 public NSArray documentClassNames () | 98 public NSArray documentClassNames () |
99 { | 99 { |
100 objc.id result = OS.objc_msgSend(this.id, OS.sel_documentClassNames); | 100 objc.id result = OS.objc_msgSend(this.id_, OS.sel_documentClassNames); |
101 return result !is null ? new NSArray(result) : null; | 101 return result !is null ? new NSArray(result) : null; |
102 } | 102 } |
103 | 103 |
104 public id documentForFileName (NSString fileName) | 104 public id documentForFileName (NSString fileName) |
105 { | 105 { |
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_documentForFileName_1, fileName !is null ? fileName.id : null); | 106 objc.id result = OS.objc_msgSend(this.id_, OS.sel_documentForFileName_1, fileName !is null ? fileName.id_ : null); |
107 return result !is null ? new id(result) : null; | 107 return result !is null ? new id(result) : null; |
108 } | 108 } |
109 | 109 |
110 public id documentForURL (NSURL absoluteURL) | 110 public id documentForURL (NSURL absoluteURL) |
111 { | 111 { |
112 objc.id result = OS.objc_msgSend(this.id, OS.sel_documentForURL_1, absoluteURL !is null ? absoluteURL.id : null); | 112 objc.id result = OS.objc_msgSend(this.id_, OS.sel_documentForURL_1, absoluteURL !is null ? absoluteURL.id_ : null); |
113 return result !is null ? new id(result) : null; | 113 return result !is null ? new id(result) : null; |
114 } | 114 } |
115 | 115 |
116 public id documentForWindow (NSWindow window) | 116 public id documentForWindow (NSWindow window) |
117 { | 117 { |
118 objc.id result = OS.objc_msgSend(this.id, OS.sel_documentForWindow_1, window !is null ? window.id : null); | 118 objc.id result = OS.objc_msgSend(this.id_, OS.sel_documentForWindow_1, window !is null ? window.id_ : null); |
119 return result !is null ? new id(result) : null; | 119 return result !is null ? new id(result) : null; |
120 } | 120 } |
121 | 121 |
122 public NSArray documents () | 122 public NSArray documents () |
123 { | 123 { |
124 objc.id result = OS.objc_msgSend(this.id, OS.sel_documents); | 124 objc.id result = OS.objc_msgSend(this.id_, OS.sel_documents); |
125 return result !is null ? new NSArray(result) : null; | 125 return result !is null ? new NSArray(result) : null; |
126 } | 126 } |
127 | 127 |
128 public NSArray fileExtensionsFromType (NSString typeName) | 128 public NSArray fileExtensionsFromType (NSString typeName) |
129 { | 129 { |
130 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileExtensionsFromType_1, typeName !is null ? typeName.id : null); | 130 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileExtensionsFromType_1, typeName !is null ? typeName.id_ : null); |
131 return result !is null ? new NSArray(result) : null; | 131 return result !is null ? new NSArray(result) : null; |
132 } | 132 } |
133 | 133 |
134 public NSArray fileNamesFromRunningOpenPanel () | 134 public NSArray fileNamesFromRunningOpenPanel () |
135 { | 135 { |
136 objc.id result = OS.objc_msgSend(this.id, OS.sel_fileNamesFromRunningOpenPanel); | 136 objc.id result = OS.objc_msgSend(this.id_, OS.sel_fileNamesFromRunningOpenPanel); |
137 return result !is null ? new NSArray(result) : null; | 137 return result !is null ? new NSArray(result) : null; |
138 } | 138 } |
139 | 139 |
140 public bool hasEditedDocuments () | 140 public bool hasEditedDocuments () |
141 { | 141 { |
142 return OS.objc_msgSend(this.id, OS.sel_hasEditedDocuments) !is null; | 142 return OS.objc_msgSend(this.id_, OS.sel_hasEditedDocuments) !is null; |
143 } | 143 } |
144 | 144 |
145 public id makeDocumentForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, objc.id** outError) | 145 public id makeDocumentForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, objc.id** outError) |
146 { | 146 { |
147 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeDocumentForURL_1withContentsOfURL_1ofType_1error_1, | 147 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeDocumentForURL_1withContentsOfURL_1ofType_1error_1, |
148 absoluteDocumentURL !is null ? absoluteDocumentURL.id : null, | 148 absoluteDocumentURL !is null ? absoluteDocumentURL.id_ : null, |
149 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id : null, typeName !is null ? typeName.id : null, outError); | 149 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id_ : null, typeName !is null ? typeName.id_ : null, outError); |
150 return result !is null ? new id(result) : null; | 150 return result !is null ? new id(result) : null; |
151 } | 151 } |
152 | 152 |
153 public id makeDocumentWithContentsOfFile (NSString fileName, NSString type) | 153 public id makeDocumentWithContentsOfFile (NSString fileName, NSString type) |
154 { | 154 { |
155 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeDocumentWithContentsOfFile_1ofType_1, fileName !is null ? fileName.id : null, | 155 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeDocumentWithContentsOfFile_1ofType_1, fileName !is null ? fileName.id_ : null, |
156 type !is null ? type.id : null); | 156 type !is null ? type.id_ : null); |
157 return result !is null ? new id(result) : null; | 157 return result !is null ? new id(result) : null; |
158 } | 158 } |
159 | 159 |
160 public id makeDocumentWithContentsOfURL_ofType_ (NSURL url, NSString type) | 160 public id makeDocumentWithContentsOfURL_ofType_ (NSURL url, NSString type) |
161 { | 161 { |
162 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeDocumentWithContentsOfURL_1ofType_1, url !is null ? url.id : null, | 162 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeDocumentWithContentsOfURL_1ofType_1, url !is null ? url.id_ : null, |
163 type !is null ? type.id : null); | 163 type !is null ? type.id_ : null); |
164 return result !is null ? new id(result) : null; | 164 return result !is null ? new id(result) : null; |
165 } | 165 } |
166 | 166 |
167 public id makeDocumentWithContentsOfURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) | 167 public id makeDocumentWithContentsOfURL_ofType_error_ (NSURL absoluteURL, NSString typeName, objc.id** outError) |
168 { | 168 { |
169 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeDocumentWithContentsOfURL_1ofType_1error_1, | 169 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeDocumentWithContentsOfURL_1ofType_1error_1, |
170 absoluteURL !is null ? absoluteURL.id : null, typeName !is null ? typeName.id : null, outError); | 170 absoluteURL !is null ? absoluteURL.id_ : null, typeName !is null ? typeName.id_ : null, outError); |
171 return result !is null ? new id(result) : null; | 171 return result !is null ? new id(result) : null; |
172 } | 172 } |
173 | 173 |
174 public id makeUntitledDocumentOfType_ (NSString type) | 174 public id makeUntitledDocumentOfType_ (NSString type) |
175 { | 175 { |
176 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeUntitledDocumentOfType_1, type !is null ? type.id : null); | 176 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeUntitledDocumentOfType_1, type !is null ? type.id_ : null); |
177 return result !is null ? new id(result) : null; | 177 return result !is null ? new id(result) : null; |
178 } | 178 } |
179 | 179 |
180 public id makeUntitledDocumentOfType_error_ (NSString typeName, objc.id** outError) | 180 public id makeUntitledDocumentOfType_error_ (NSString typeName, objc.id** outError) |
181 { | 181 { |
182 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeUntitledDocumentOfType_1error_1, typeName !is null ? typeName.id : null, outError); | 182 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeUntitledDocumentOfType_1error_1, typeName !is null ? typeName.id_ : null, outError); |
183 return result !is null ? new id(result) : null; | 183 return result !is null ? new id(result) : null; |
184 } | 184 } |
185 | 185 |
186 public NSUInteger maximumRecentDocumentCount () | 186 public NSUInteger maximumRecentDocumentCount () |
187 { | 187 { |
188 return OS.objc_msgSend(this.id, OS.sel_maximumRecentDocumentCount); | 188 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_maximumRecentDocumentCount); |
189 } | 189 } |
190 | 190 |
191 public void newDocument (id sender) | 191 public void newDocument (id sender) |
192 { | 192 { |
193 OS.objc_msgSend(this.id, OS.sel_newDocument_1, sender !is null ? sender.id : null); | 193 OS.objc_msgSend(this.id_, OS.sel_newDocument_1, sender !is null ? sender.id_ : null); |
194 } | 194 } |
195 | 195 |
196 public void noteNewRecentDocument (NSDocument document) | 196 public void noteNewRecentDocument (NSDocument document) |
197 { | 197 { |
198 OS.objc_msgSend(this.id, OS.sel_noteNewRecentDocument_1, document !is null ? document.id : null); | 198 OS.objc_msgSend(this.id_, OS.sel_noteNewRecentDocument_1, document !is null ? document.id_ : null); |
199 } | 199 } |
200 | 200 |
201 public void noteNewRecentDocumentURL (NSURL absoluteURL) | 201 public void noteNewRecentDocumentURL (NSURL absoluteURL) |
202 { | 202 { |
203 OS.objc_msgSend(this.id, OS.sel_noteNewRecentDocumentURL_1, absoluteURL !is null ? absoluteURL.id : null); | 203 OS.objc_msgSend(this.id_, OS.sel_noteNewRecentDocumentURL_1, absoluteURL !is null ? absoluteURL.id_ : null); |
204 } | 204 } |
205 | 205 |
206 public void openDocument (id sender) | 206 public void openDocument (id sender) |
207 { | 207 { |
208 OS.objc_msgSend(this.id, OS.sel_openDocument_1, sender !is null ? sender.id : null); | 208 OS.objc_msgSend(this.id_, OS.sel_openDocument_1, sender !is null ? sender.id_ : null); |
209 } | 209 } |
210 | 210 |
211 public id openDocumentWithContentsOfFile (NSString fileName, bool display) | 211 public id openDocumentWithContentsOfFile (NSString fileName, bool display) |
212 { | 212 { |
213 objc.id result = OS.objc_msgSend(this.id, OS.sel_openDocumentWithContentsOfFile_1display_1, fileName !is null ? fileName.id : null, display); | 213 objc.id result = OS.objc_msgSend(this.id_, OS.sel_openDocumentWithContentsOfFile_1display_1, fileName !is null ? fileName.id_ : null, display); |
214 return result !is null ? new id(result) : null; | 214 return result !is null ? new id(result) : null; |
215 } | 215 } |
216 | 216 |
217 public id openDocumentWithContentsOfURL_display_ (NSURL url, bool display) | 217 public id openDocumentWithContentsOfURL_display_ (NSURL url, bool display) |
218 { | 218 { |
219 objc.id result = OS.objc_msgSend(this.id, OS.sel_openDocumentWithContentsOfURL_1display_1, url !is null ? url.id : null, display); | 219 objc.id result = OS.objc_msgSend(this.id_, OS.sel_openDocumentWithContentsOfURL_1display_1, url !is null ? url.id_ : null, display); |
220 return result !is null ? new id(result) : null; | 220 return result !is null ? new id(result) : null; |
221 } | 221 } |
222 | 222 |
223 public id openDocumentWithContentsOfURL_display_error_ (NSURL absoluteURL, bool displayDocument, objc.id** outError) | 223 public id openDocumentWithContentsOfURL_display_error_ (NSURL absoluteURL, bool displayDocument, objc.id** outError) |
224 { | 224 { |
225 objc.id result = OS.objc_msgSend(this.id, OS.sel_openDocumentWithContentsOfURL_1display_1error_1, | 225 objc.id result = OS.objc_msgSend(this.id_, OS.sel_openDocumentWithContentsOfURL_1display_1error_1, |
226 absoluteURL !is null ? absoluteURL.id : null, displayDocument, outError); | 226 absoluteURL !is null ? absoluteURL.id_ : null, displayDocument, outError); |
227 return result !is null ? new id(result) : null; | 227 return result !is null ? new id(result) : null; |
228 } | 228 } |
229 | 229 |
230 public id openUntitledDocumentAndDisplay (bool displayDocument, objc.id** outError) | 230 public id openUntitledDocumentAndDisplay (bool displayDocument, objc.id** outError) |
231 { | 231 { |
232 objc.id result = OS.objc_msgSend(this.id, OS.sel_openUntitledDocumentAndDisplay_1error_1, displayDocument, outError); | 232 objc.id result = OS.objc_msgSend(this.id_, OS.sel_openUntitledDocumentAndDisplay_1error_1, displayDocument, outError); |
233 return result !is null ? new id(result) : null; | 233 return result !is null ? new id(result) : null; |
234 } | 234 } |
235 | 235 |
236 public id openUntitledDocumentOfType (NSString type, bool display) | 236 public id openUntitledDocumentOfType (NSString type, bool display) |
237 { | 237 { |
238 objc.id result = OS.objc_msgSend(this.id, OS.sel_openUntitledDocumentOfType_1display_1, type !is null ? type.id : null, display); | 238 objc.id result = OS.objc_msgSend(this.id_, OS.sel_openUntitledDocumentOfType_1display_1, type !is null ? type.id_ : null, display); |
239 return result !is null ? new id(result) : null; | 239 return result !is null ? new id(result) : null; |
240 } | 240 } |
241 | 241 |
242 public bool presentError_ (NSError error) | 242 public bool presentError_ (NSError error) |
243 { | 243 { |
244 return OS.objc_msgSend(this.id, OS.sel_presentError_1, error !is null ? error.id : null) !is null; | 244 return OS.objc_msgSend(this.id_, OS.sel_presentError_1, error !is null ? error.id_ : null) !is null; |
245 } | 245 } |
246 | 246 |
247 public void presentError_modalForWindow_delegatee_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee, | 247 public void presentError_modalForWindow_delegate_didPresentSelector_contextInfo_ (NSError error, NSWindow window, id delegatee, |
248 objc.SEL didPresentSelector, void* contextInfo) | 248 objc.SEL didPresentSelector, void* contextInfo) |
249 { | 249 { |
250 OS.objc_msgSend(this.id, OS.sel_presentError_1modalForWindow_1delegatee_1didPresentSelector_1contextInfo_1, error !is null ? error.id : null, | 250 OS.objc_msgSend(this.id_, OS.sel_presentError_1modalForWindow_1delegate_1didPresentSelector_1contextInfo_1, error !is null ? error.id_ : null, |
251 window !is null ? window.id : null, delegatee !is null ? delegatee.id : null, didPresentSelector, contextInfo); | 251 window !is null ? window.id_ : null, delegatee !is null ? delegatee.id_ : null, didPresentSelector, contextInfo); |
252 } | 252 } |
253 | 253 |
254 public NSArray recentDocumentURLs () | 254 public NSArray recentDocumentURLs () |
255 { | 255 { |
256 objc.id result = OS.objc_msgSend(this.id, OS.sel_recentDocumentURLs); | 256 objc.id result = OS.objc_msgSend(this.id_, OS.sel_recentDocumentURLs); |
257 return result !is null ? new NSArray(result) : null; | 257 return result !is null ? new NSArray(result) : null; |
258 } | 258 } |
259 | 259 |
260 public void removeDocument (NSDocument document) | 260 public void removeDocument (NSDocument document) |
261 { | 261 { |
262 OS.objc_msgSend(this.id, OS.sel_removeDocument_1, document !is null ? document.id : null); | 262 OS.objc_msgSend(this.id_, OS.sel_removeDocument_1, document !is null ? document.id_ : null); |
263 } | 263 } |
264 | 264 |
265 public bool reopenDocumentForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, objc.id** outError) | 265 public bool reopenDocumentForURL (NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, objc.id** outError) |
266 { | 266 { |
267 return OS.objc_msgSend(this.id, OS.sel_reopenDocumentForURL_1withContentsOfURL_1error_1, | 267 return OS.objc_msgSend(this.id_, OS.sel_reopenDocumentForURL_1withContentsOfURL_1error_1, |
268 absoluteDocumentURL !is null ? absoluteDocumentURL.id : null, | 268 absoluteDocumentURL !is null ? absoluteDocumentURL.id_ : null, |
269 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id : null, outError) !is null; | 269 absoluteDocumentContentsURL !is null ? absoluteDocumentContentsURL.id_ : null, outError) !is null; |
270 } | 270 } |
271 | 271 |
272 public void reviewUnsavedDocumentsWithAlertTitle (NSString title, bool cancellable, id delegatee, objc.SEL didReviewAllSelector, void* contextInfo) | 272 public void reviewUnsavedDocumentsWithAlertTitle (NSString title, bool cancellable, id delegatee, objc.SEL didReviewAllSelector, void* contextInfo) |
273 { | 273 { |
274 OS.objc_msgSend(this.id, OS.sel_reviewUnsavedDocumentsWithAlertTitle_1cancellable_1delegatee_1didReviewAllSelector_1contextInfo_1, | 274 OS.objc_msgSend(this.id_, OS.sel_reviewUnsavedDocumentsWithAlertTitle_1cancellable_1delegate_1didReviewAllSelector_1contextInfo_1, |
275 title !is null ? title.id : null, cancellable, delegatee !is null ? delegatee.id : null, didReviewAllSelector, contextInfo); | 275 title !is null ? title.id_ : null, cancellable, delegatee !is null ? delegatee.id_ : null, didReviewAllSelector, contextInfo); |
276 } | 276 } |
277 | 277 |
278 public NSInteger runModalOpenPanel (NSOpenPanel openPanel, NSArray types) | 278 public NSInteger runModalOpenPanel (NSOpenPanel openPanel, NSArray types) |
279 { | 279 { |
280 return OS.objc_msgSend(this.id, OS.sel_runModalOpenPanel_1forTypes_1, openPanel !is null ? openPanel.id : null, | 280 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_runModalOpenPanel_1forTypes_1, openPanel !is null ? openPanel.id_ : null, |
281 types !is null ? types.id : null); | 281 types !is null ? types.id_ : null); |
282 } | 282 } |
283 | 283 |
284 public void saveAllDocuments (id sender) | 284 public void saveAllDocuments (id sender) |
285 { | 285 { |
286 OS.objc_msgSend(this.id, OS.sel_saveAllDocuments_1, sender !is null ? sender.id : null); | 286 OS.objc_msgSend(this.id_, OS.sel_saveAllDocuments_1, sender !is null ? sender.id_ : null); |
287 } | 287 } |
288 | 288 |
289 public void setAutosavingDelay (double autosavingDelay) | 289 public void setAutosavingDelay (double autosavingDelay) |
290 { | 290 { |
291 OS.objc_msgSend(this.id, OS.sel_setAutosavingDelay_1, autosavingDelay); | 291 OS.objc_msgSend(this.id_, OS.sel_setAutosavingDelay_1, autosavingDelay); |
292 } | 292 } |
293 | 293 |
294 public void setShouldCreateUI (bool flag) | 294 public void setShouldCreateUI (bool flag) |
295 { | 295 { |
296 OS.objc_msgSend(this.id, OS.sel_setShouldCreateUI_1, flag); | 296 OS.objc_msgSend(this.id_, OS.sel_setShouldCreateUI_1, flag); |
297 } | 297 } |
298 | 298 |
299 public static id sharedDocumentController () | 299 public static id sharedDocumentController () |
300 { | 300 { |
301 objc.id result = OS.objc_msgSend(OS.class_NSDocumentController, OS.sel_sharedDocumentController); | 301 objc.id result = OS.objc_msgSend(OS.class_NSDocumentController, OS.sel_sharedDocumentController); |
302 return result !is null ? new id(result) : null; | 302 return result !is null ? new id(result) : null; |
303 } | 303 } |
304 | 304 |
305 public bool shouldCreateUI () | 305 public bool shouldCreateUI () |
306 { | 306 { |
307 return OS.objc_msgSend(this.id, OS.sel_shouldCreateUI) !is null; | 307 return OS.objc_msgSend(this.id_, OS.sel_shouldCreateUI) !is null; |
308 } | 308 } |
309 | 309 |
310 public NSString typeForContentsOfURL (NSURL inAbsoluteURL, objc.id** outError) | 310 public NSString typeForContentsOfURL (NSURL inAbsoluteURL, objc.id** outError) |
311 { | 311 { |
312 objc.id result = OS.objc_msgSend(this.id, OS.sel_typeForContentsOfURL_1error_1, inAbsoluteURL !is null ? inAbsoluteURL.id : null, outError); | 312 objc.id result = OS.objc_msgSend(this.id_, OS.sel_typeForContentsOfURL_1error_1, inAbsoluteURL !is null ? inAbsoluteURL.id_ : null, outError); |
313 return result !is null ? new NSString(result) : null; | 313 return result !is null ? new NSString(result) : null; |
314 } | 314 } |
315 | 315 |
316 public NSString typeFromFileExtension (NSString fileNameExtensionOrHFSFileType) | 316 public NSString typeFromFileExtension (NSString fileNameExtensionOrHFSFileType) |
317 { | 317 { |
318 objc.id result = OS.objc_msgSend(this.id, OS.sel_typeFromFileExtension_1, | 318 objc.id result = OS.objc_msgSend(this.id_, OS.sel_typeFromFileExtension_1, |
319 fileNameExtensionOrHFSFileType !is null ? fileNameExtensionOrHFSFileType.id : null); | 319 fileNameExtensionOrHFSFileType !is null ? fileNameExtensionOrHFSFileType.id_ : null); |
320 return result !is null ? new NSString(result) : null; | 320 return result !is null ? new NSString(result) : null; |
321 } | 321 } |
322 | 322 |
323 public bool validateUserInterfaceItem (id anItem) | 323 public bool validateUserInterfaceItem (id anItem) |
324 { | 324 { |
325 return OS.objc_msgSend(this.id, OS.sel_validateUserInterfaceItem_1, anItem !is null ? anItem.id : null) !is null; | 325 return OS.objc_msgSend(this.id_, OS.sel_validateUserInterfaceItem_1, anItem !is null ? anItem.id_ : null) !is null; |
326 } | 326 } |
327 | 327 |
328 public NSError willPresentError (NSError error) | 328 public NSError willPresentError (NSError error) |
329 { | 329 { |
330 objc.id result = OS.objc_msgSend(this.id, OS.sel_willPresentError_1, error !is null ? error.id : null); | 330 objc.id result = OS.objc_msgSend(this.id_, OS.sel_willPresentError_1, error !is null ? error.id_ : null); |
331 return result !is null ? new NSError(result) : null; | 331 return result !is null ? new NSError(result) : null; |
332 } | 332 } |
333 | 333 |
334 } | 334 } |