comparison dstep/foundation/NSInvocation.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 7ff919f595d5
children b9de51448c6b
comparison
equal deleted inserted replaced
15:7ff919f595d5 16:19885b43130e
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) 5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */ 6 */
7 module dstep.foundation.NSInvocation; 7 module dstep.foundation.NSInvocation;
8 8
9 import dstep.foundation.NSMethodSignature; 9 import dstep.foundation.NSMethodSignature;
10 import dstep.foundation.NSObjCRuntime;
10 import dstep.foundation.NSObject; 11 import dstep.foundation.NSObject;
11 import dstep.objc.bridge.Bridge; 12 import dstep.objc.bridge.Bridge;
12 import dstep.objc.objc : id; 13 import dstep.objc.objc;
13 import dstep.stdbool;
14 14
15 class NSInvocation : NSObject 15 class NSInvocation : NSObject
16 { 16 {
17 mixin ObjcWrap; 17 mixin (ObjcWrap);
18
19 this ()
20 {
21 super(typeof(this).alloc.init.objcObject);
22 }
23
24 typeof(this) init ()
25 {
26 return invokeObjcSelf!(typeof(this), "init");
27 }
18 28
19 static NSInvocation invocationWithMethodSignature (NSMethodSignature sig) 29 static NSInvocation invocationWithMethodSignature (NSMethodSignature sig)
20 { 30 {
21 return invokeObjcSelfClass!(NSInvocation, "invocationWithMethodSignature:", NSMethodSignature)(sig); 31 return invokeObjcSuperClass!(NSInvocation, "invocationWithMethodSignature:", NSMethodSignature)(sig);
22 } 32 }
23 33
24 NSMethodSignature methodSignature () 34 NSMethodSignature methodSignature ()
25 { 35 {
26 return invokeObjcSelf!(NSMethodSignature, "methodSignature"); 36 return invokeObjcSelf!(NSMethodSignature, "methodSignature");