comparison dwt/internal/cocoa/NSException.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
36 super(id); 36 super(id);
37 } 37 }
38 38
39 public NSArray callStackReturnAddresses () 39 public NSArray callStackReturnAddresses ()
40 { 40 {
41 objc.id result = OS.objc_msgSend(this.id, OS.sel_callStackReturnAddresses); 41 objc.id result = OS.objc_msgSend(this.id_, OS.sel_callStackReturnAddresses);
42 return result !is null ? new NSArray(result) : null; 42 return result !is null ? new NSArray(result) : null;
43 } 43 }
44 44
45 public static NSException exceptionWithName (NSString name, NSString reason, NSDictionary userInfo) 45 public static NSException exceptionWithName (NSString name, NSString reason, NSDictionary userInfo)
46 { 46 {
47 objc.id result = OS.objc_msgSend(OS.class_NSException, OS.sel_exceptionWithName_1reason_1userInfo_1, name !is null ? name.id : null, 47 objc.id result = OS.objc_msgSend(OS.class_NSException, OS.sel_exceptionWithName_1reason_1userInfo_1, name !is null ? name.id_ : null,
48 reason !is null ? reason.id : null, userInfo !is null ? userInfo.id : null); 48 reason !is null ? reason.id_ : null, userInfo !is null ? userInfo.id_ : null);
49 return result !is null ? new NSException(result) : null; 49 return result !is null ? new NSException(result) : null;
50 } 50 }
51 51
52 public id initWithName (NSString aName, NSString aReason, NSDictionary aUserInfo) 52 public id initWithName (NSString aName, NSString aReason, NSDictionary aUserInfo)
53 { 53 {
54 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithName_1reason_1userInfo_1, aName !is null ? aName.id : null, 54 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithName_1reason_1userInfo_1, aName !is null ? aName.id_ : null,
55 aReason !is null ? aReason.id : null, aUserInfo !is null ? aUserInfo.id : null); 55 aReason !is null ? aReason.id_ : null, aUserInfo !is null ? aUserInfo.id_ : null);
56 return result !is null ? new id(result) : null; 56 return result !is null ? new id(result) : null;
57 } 57 }
58 58
59 public NSString name () 59 public NSString name ()
60 { 60 {
61 objc.id result = OS.objc_msgSend(this.id, OS.sel_name); 61 objc.id result = OS.objc_msgSend(this.id_, OS.sel_name);
62 return result !is null ? new NSString(result) : null; 62 return result !is null ? new NSString(result) : null;
63 } 63 }
64 64
65 public void raise () 65 public void raise ()
66 { 66 {
67 OS.objc_msgSend(this.id, OS.sel_raise); 67 OS.objc_msgSend(this.id_, OS.sel_raise);
68 } 68 }
69 69
70 public static void static_raise_format_ (NSString name, NSString format) 70 public static void static_raise_format_ (NSString name, NSString format)
71 { 71 {
72 OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1, name !is null ? name.id : null, format !is null ? format.id : null); 72 OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1, name !is null ? name.id_ : null, format !is null ? format.id_ : null);
73 } 73 }
74 74
75 public static void static_raise_format_arguments_ (NSString name, NSString format, va_list argList) 75 public static void static_raise_format_arguments_ (NSString name, NSString format, va_list argList)
76 { 76 {
77 OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1arguments_1, name !is null ? name.id : null, format !is null ? format.id : null, 77 OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1arguments_1, name !is null ? name.id_ : null, format !is null ? format.id_ : null,
78 argList); 78 argList);
79 } 79 }
80 80
81 public NSString reason () 81 public NSString reason ()
82 { 82 {
83 objc.id result = OS.objc_msgSend(this.id, OS.sel_reason); 83 objc.id result = OS.objc_msgSend(this.id_, OS.sel_reason);
84 return result !is null ? new NSString(result) : null; 84 return result !is null ? new NSString(result) : null;
85 } 85 }
86 86
87 public NSDictionary userInfo () 87 public NSDictionary userInfo ()
88 { 88 {
89 objc.id result = OS.objc_msgSend(this.id, OS.sel_userInfo); 89 objc.id result = OS.objc_msgSend(this.id_, OS.sel_userInfo);
90 return result !is null ? new NSDictionary(result) : null; 90 return result !is null ? new NSDictionary(result) : null;
91 } 91 }
92 92
93 } 93 }