Mercurial > projects > dstep
diff dstep/foundation/NSException.d @ 15:7ff919f595d5
Added the Foundation framework, again
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:31:48 +0200 |
parents | 89f3c3ef1fd2 |
children | 19885b43130e |
line wrap: on
line diff
--- a/dstep/foundation/NSException.d Mon Aug 03 15:23:15 2009 +0200 +++ b/dstep/foundation/NSException.d Mon Aug 03 15:31:48 2009 +0200 @@ -62,7 +62,8 @@ static NSAssertionHandler currentHandler () { - return invokeObjcSelfClass!(NSAssertionHandler, "currentHandler"return result is this.objcObject ? this : (result !is null ? new NSAssertionHandler(result) : null); } + return invokeObjcSelfClass!(NSAssertionHandler, "currentHandler"); + } void handleFailureInMethod (SEL selector, Object object, NSString fileName, NSInteger line, NSString description, ...) { @@ -82,7 +83,8 @@ static NSException exceptionWithName (NSString name, NSString reason, NSDictionary userInfo) { - return invokeObjcSelfClass!(NSException, "exceptionWithName:reason:userInfo:", NSString, NSString, NSDictionary)(name, reason, userInforeturn result is this.objcObject ? this : (result !is null ? new NSException(result) : null); } + return invokeObjcSelfClass!(NSException, "exceptionWithName:reason:userInfo:", NSString, NSString, NSDictionary)(name, reason, userInfo); + } Object initWithName (NSString aName, NSString aReason, NSDictionary aUserInfo) {