Mercurial > projects > dstep
comparison dstep/appkit/NSErrors.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.appkit.NSErrors; | |
8 | |
9 import dstep.appkit.AppKitDefines; | |
10 import dstep.foundation.NSString; | |
11 import dstep.objc.bridge.Bridge; | |
12 import dstep.objc.objc; | |
13 | |
14 import bindings = dstep.appkit.NSErrors_bindings; | |
15 | |
16 private | |
17 { | |
18 NSString NSTextLineTooLongException_; | |
19 NSString NSTextNoSelectionException_; | |
20 NSString NSWordTablesWriteException_; | |
21 NSString NSWordTablesReadException_; | |
22 NSString NSTextReadException_; | |
23 NSString NSTextWriteException_; | |
24 NSString NSPasteboardCommunicationException_; | |
25 NSString NSPrintingCommunicationException_; | |
26 NSString NSAbortModalException_; | |
27 NSString NSAbortPrintingException_; | |
28 NSString NSIllegalSelectorException_; | |
29 NSString NSAppKitVirtualMemoryException_; | |
30 NSString NSBadRTFDirectiveException_; | |
31 NSString NSBadRTFFontTableException_; | |
32 NSString NSBadRTFStyleSheetException_; | |
33 NSString NSTypedStreamVersionException_; | |
34 NSString NSTIFFException_; | |
35 NSString NSPrintPackageException_; | |
36 NSString NSBadRTFColorTableException_; | |
37 NSString NSDraggingException_; | |
38 NSString NSColorListIOException_; | |
39 NSString NSColorListNotEditableException_; | |
40 NSString NSBadBitmapParametersException_; | |
41 NSString NSWindowServerCommunicationException_; | |
42 NSString NSFontUnavailableException_; | |
43 NSString NSPPDIncludeNotFoundException_; | |
44 NSString NSPPDParseException_; | |
45 NSString NSPPDIncludeStackOverflowException_; | |
46 NSString NSPPDIncludeStackUnderflowException_; | |
47 NSString NSRTFPropertyStackOverflowException_; | |
48 NSString NSAppKitIgnoredException_; | |
49 NSString NSBadComparisonException_; | |
50 NSString NSImageCacheException_; | |
51 NSString NSNibLoadingException_; | |
52 NSString NSBrowserIllegalDelegateException_; | |
53 NSString NSAccessibilityException_; | |
54 } | |
55 | |
56 NSString NSTextLineTooLongException () | |
57 { | |
58 if (NSTextLineTooLongException_) | |
59 return NSTextLineTooLongException_; | |
60 | |
61 return NSTextLineTooLongException_ = new NSString(bindings.NSTextLineTooLongException); | |
62 } | |
63 | |
64 NSString NSTextNoSelectionException () | |
65 { | |
66 if (NSTextNoSelectionException_) | |
67 return NSTextNoSelectionException_; | |
68 | |
69 return NSTextNoSelectionException_ = new NSString(bindings.NSTextNoSelectionException); | |
70 } | |
71 | |
72 NSString NSWordTablesWriteException () | |
73 { | |
74 if (NSWordTablesWriteException_) | |
75 return NSWordTablesWriteException_; | |
76 | |
77 return NSWordTablesWriteException_ = new NSString(bindings.NSWordTablesWriteException); | |
78 } | |
79 | |
80 NSString NSWordTablesReadException () | |
81 { | |
82 if (NSWordTablesReadException_) | |
83 return NSWordTablesReadException_; | |
84 | |
85 return NSWordTablesReadException_ = new NSString(bindings.NSWordTablesReadException); | |
86 } | |
87 | |
88 NSString NSTextReadException () | |
89 { | |
90 if (NSTextReadException_) | |
91 return NSTextReadException_; | |
92 | |
93 return NSTextReadException_ = new NSString(bindings.NSTextReadException); | |
94 } | |
95 | |
96 NSString NSTextWriteException () | |
97 { | |
98 if (NSTextWriteException_) | |
99 return NSTextWriteException_; | |
100 | |
101 return NSTextWriteException_ = new NSString(bindings.NSTextWriteException); | |
102 } | |
103 | |
104 NSString NSPasteboardCommunicationException () | |
105 { | |
106 if (NSPasteboardCommunicationException_) | |
107 return NSPasteboardCommunicationException_; | |
108 | |
109 return NSPasteboardCommunicationException_ = new NSString(bindings.NSPasteboardCommunicationException); | |
110 } | |
111 | |
112 NSString NSPrintingCommunicationException () | |
113 { | |
114 if (NSPrintingCommunicationException_) | |
115 return NSPrintingCommunicationException_; | |
116 | |
117 return NSPrintingCommunicationException_ = new NSString(bindings.NSPrintingCommunicationException); | |
118 } | |
119 | |
120 NSString NSAbortModalException () | |
121 { | |
122 if (NSAbortModalException_) | |
123 return NSAbortModalException_; | |
124 | |
125 return NSAbortModalException_ = new NSString(bindings.NSAbortModalException); | |
126 } | |
127 | |
128 NSString NSAbortPrintingException () | |
129 { | |
130 if (NSAbortPrintingException_) | |
131 return NSAbortPrintingException_; | |
132 | |
133 return NSAbortPrintingException_ = new NSString(bindings.NSAbortPrintingException); | |
134 } | |
135 | |
136 NSString NSIllegalSelectorException () | |
137 { | |
138 if (NSIllegalSelectorException_) | |
139 return NSIllegalSelectorException_; | |
140 | |
141 return NSIllegalSelectorException_ = new NSString(bindings.NSIllegalSelectorException); | |
142 } | |
143 | |
144 NSString NSAppKitVirtualMemoryException () | |
145 { | |
146 if (NSAppKitVirtualMemoryException_) | |
147 return NSAppKitVirtualMemoryException_; | |
148 | |
149 return NSAppKitVirtualMemoryException_ = new NSString(bindings.NSAppKitVirtualMemoryException); | |
150 } | |
151 | |
152 NSString NSBadRTFDirectiveException () | |
153 { | |
154 if (NSBadRTFDirectiveException_) | |
155 return NSBadRTFDirectiveException_; | |
156 | |
157 return NSBadRTFDirectiveException_ = new NSString(bindings.NSBadRTFDirectiveException); | |
158 } | |
159 | |
160 NSString NSBadRTFFontTableException () | |
161 { | |
162 if (NSBadRTFFontTableException_) | |
163 return NSBadRTFFontTableException_; | |
164 | |
165 return NSBadRTFFontTableException_ = new NSString(bindings.NSBadRTFFontTableException); | |
166 } | |
167 | |
168 NSString NSBadRTFStyleSheetException () | |
169 { | |
170 if (NSBadRTFStyleSheetException_) | |
171 return NSBadRTFStyleSheetException_; | |
172 | |
173 return NSBadRTFStyleSheetException_ = new NSString(bindings.NSBadRTFStyleSheetException); | |
174 } | |
175 | |
176 NSString NSTypedStreamVersionException () | |
177 { | |
178 if (NSTypedStreamVersionException_) | |
179 return NSTypedStreamVersionException_; | |
180 | |
181 return NSTypedStreamVersionException_ = new NSString(bindings.NSTypedStreamVersionException); | |
182 } | |
183 | |
184 NSString NSTIFFException () | |
185 { | |
186 if (NSTIFFException_) | |
187 return NSTIFFException_; | |
188 | |
189 return NSTIFFException_ = new NSString(bindings.NSTIFFException); | |
190 } | |
191 | |
192 NSString NSPrintPackageException () | |
193 { | |
194 if (NSPrintPackageException_) | |
195 return NSPrintPackageException_; | |
196 | |
197 return NSPrintPackageException_ = new NSString(bindings.NSPrintPackageException); | |
198 } | |
199 | |
200 NSString NSBadRTFColorTableException () | |
201 { | |
202 if (NSBadRTFColorTableException_) | |
203 return NSBadRTFColorTableException_; | |
204 | |
205 return NSBadRTFColorTableException_ = new NSString(bindings.NSBadRTFColorTableException); | |
206 } | |
207 | |
208 NSString NSDraggingException () | |
209 { | |
210 if (NSDraggingException_) | |
211 return NSDraggingException_; | |
212 | |
213 return NSDraggingException_ = new NSString(bindings.NSDraggingException); | |
214 } | |
215 | |
216 NSString NSColorListIOException () | |
217 { | |
218 if (NSColorListIOException_) | |
219 return NSColorListIOException_; | |
220 | |
221 return NSColorListIOException_ = new NSString(bindings.NSColorListIOException); | |
222 } | |
223 | |
224 NSString NSColorListNotEditableException () | |
225 { | |
226 if (NSColorListNotEditableException_) | |
227 return NSColorListNotEditableException_; | |
228 | |
229 return NSColorListNotEditableException_ = new NSString(bindings.NSColorListNotEditableException); | |
230 } | |
231 | |
232 NSString NSBadBitmapParametersException () | |
233 { | |
234 if (NSBadBitmapParametersException_) | |
235 return NSBadBitmapParametersException_; | |
236 | |
237 return NSBadBitmapParametersException_ = new NSString(bindings.NSBadBitmapParametersException); | |
238 } | |
239 | |
240 NSString NSWindowServerCommunicationException () | |
241 { | |
242 if (NSWindowServerCommunicationException_) | |
243 return NSWindowServerCommunicationException_; | |
244 | |
245 return NSWindowServerCommunicationException_ = new NSString(bindings.NSWindowServerCommunicationException); | |
246 } | |
247 | |
248 NSString NSFontUnavailableException () | |
249 { | |
250 if (NSFontUnavailableException_) | |
251 return NSFontUnavailableException_; | |
252 | |
253 return NSFontUnavailableException_ = new NSString(bindings.NSFontUnavailableException); | |
254 } | |
255 | |
256 NSString NSPPDIncludeNotFoundException () | |
257 { | |
258 if (NSPPDIncludeNotFoundException_) | |
259 return NSPPDIncludeNotFoundException_; | |
260 | |
261 return NSPPDIncludeNotFoundException_ = new NSString(bindings.NSPPDIncludeNotFoundException); | |
262 } | |
263 | |
264 NSString NSPPDParseException () | |
265 { | |
266 if (NSPPDParseException_) | |
267 return NSPPDParseException_; | |
268 | |
269 return NSPPDParseException_ = new NSString(bindings.NSPPDParseException); | |
270 } | |
271 | |
272 NSString NSPPDIncludeStackOverflowException () | |
273 { | |
274 if (NSPPDIncludeStackOverflowException_) | |
275 return NSPPDIncludeStackOverflowException_; | |
276 | |
277 return NSPPDIncludeStackOverflowException_ = new NSString(bindings.NSPPDIncludeStackOverflowException); | |
278 } | |
279 | |
280 NSString NSPPDIncludeStackUnderflowException () | |
281 { | |
282 if (NSPPDIncludeStackUnderflowException_) | |
283 return NSPPDIncludeStackUnderflowException_; | |
284 | |
285 return NSPPDIncludeStackUnderflowException_ = new NSString(bindings.NSPPDIncludeStackUnderflowException); | |
286 } | |
287 | |
288 NSString NSRTFPropertyStackOverflowException () | |
289 { | |
290 if (NSRTFPropertyStackOverflowException_) | |
291 return NSRTFPropertyStackOverflowException_; | |
292 | |
293 return NSRTFPropertyStackOverflowException_ = new NSString(bindings.NSRTFPropertyStackOverflowException); | |
294 } | |
295 | |
296 NSString NSAppKitIgnoredException () | |
297 { | |
298 if (NSAppKitIgnoredException_) | |
299 return NSAppKitIgnoredException_; | |
300 | |
301 return NSAppKitIgnoredException_ = new NSString(bindings.NSAppKitIgnoredException); | |
302 } | |
303 | |
304 NSString NSBadComparisonException () | |
305 { | |
306 if (NSBadComparisonException_) | |
307 return NSBadComparisonException_; | |
308 | |
309 return NSBadComparisonException_ = new NSString(bindings.NSBadComparisonException); | |
310 } | |
311 | |
312 NSString NSImageCacheException () | |
313 { | |
314 if (NSImageCacheException_) | |
315 return NSImageCacheException_; | |
316 | |
317 return NSImageCacheException_ = new NSString(bindings.NSImageCacheException); | |
318 } | |
319 | |
320 NSString NSNibLoadingException () | |
321 { | |
322 if (NSNibLoadingException_) | |
323 return NSNibLoadingException_; | |
324 | |
325 return NSNibLoadingException_ = new NSString(bindings.NSNibLoadingException); | |
326 } | |
327 | |
328 NSString NSBrowserIllegalDelegateException () | |
329 { | |
330 if (NSBrowserIllegalDelegateException_) | |
331 return NSBrowserIllegalDelegateException_; | |
332 | |
333 return NSBrowserIllegalDelegateException_ = new NSString(bindings.NSBrowserIllegalDelegateException); | |
334 } | |
335 | |
336 NSString NSAccessibilityException () | |
337 { | |
338 if (NSAccessibilityException_) | |
339 return NSAccessibilityException_; | |
340 | |
341 return NSAccessibilityException_ = new NSString(bindings.NSAccessibilityException); | |
342 } | |
343 |