Mercurial > projects > dstep
comparison dstep/foundation/NSMethodSignature.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 |
---|---|
4 * Version: Initial created: Aug 3, 2009 | 4 * Version: Initial created: Aug 3, 2009 |
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.NSMethodSignature; | 7 module dstep.foundation.NSMethodSignature; |
8 | 8 |
9 import dstep.foundation.NSObjCRuntime; | |
9 import dstep.foundation.NSObject; | 10 import dstep.foundation.NSObject; |
10 import dstep.objc.bridge.Bridge; | 11 import dstep.objc.bridge.Bridge; |
11 import dstep.objc.objc : id; | 12 import dstep.objc.objc; |
12 | 13 |
13 class NSMethodSignature : NSObject | 14 class NSMethodSignature : NSObject |
14 { | 15 { |
15 mixin ObjcWrap; | 16 mixin (ObjcWrap); |
17 | |
18 this () | |
19 { | |
20 super(typeof(this).alloc.init.objcObject); | |
21 } | |
22 | |
23 typeof(this) init () | |
24 { | |
25 return invokeObjcSelf!(typeof(this), "init"); | |
26 } | |
16 | 27 |
17 static NSMethodSignature signatureWithObjCTypes (char* types) | 28 static NSMethodSignature signatureWithObjCTypes (char* types) |
18 { | 29 { |
19 return invokeObjcSelfClass!(NSMethodSignature, "signatureWithObjCTypes:", char*)(types); | 30 return invokeObjcSuperClass!(NSMethodSignature, "signatureWithObjCTypes:", char*)(types); |
20 } | 31 } |
21 | 32 |
22 NSUInteger numberOfArguments () | 33 NSUInteger numberOfArguments () |
23 { | 34 { |
24 return invokeObjcSelf!(NSUInteger, "numberOfArguments"); | 35 return invokeObjcSelf!(NSUInteger, "numberOfArguments"); |