comparison dstep/foundation/NSScriptCoercionHandler.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
comparison
equal deleted inserted replaced
14:89f3c3ef1fd2 15:7ff919f595d5
14 { 14 {
15 mixin ObjcWrap; 15 mixin ObjcWrap;
16 16
17 static NSScriptCoercionHandler sharedCoercionHandler () 17 static NSScriptCoercionHandler sharedCoercionHandler ()
18 { 18 {
19 return invokeObjcSelfClass!(NSScriptCoercionHandler, "sharedCoercionHandler"return result is this.objcObject ? this : (result !is null ? new NSScriptCoercionHandler(result) : null); } 19 return invokeObjcSelfClass!(NSScriptCoercionHandler, "sharedCoercionHandler");
20 }
20 21
21 Object coerceValue (Object value, Class toClass) 22 Object coerceValue (Object value, Class toClass)
22 { 23 {
23 return invokeObjcSelf!(Object, "coerceValue:toClass:", Object, Class)(value, toClass); 24 return invokeObjcSelf!(Object, "coerceValue:toClass:", Object, Class)(value, toClass);
24 } 25 }