Mercurial > projects > dstep
comparison dstep/appkit/NSNibConnector.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 | |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.appkit.NSNibConnector; | |
8 | |
9 import dstep.foundation.NSCoder; | |
10 import dstep.foundation.NSObject; | |
11 import dstep.foundation.NSString; | |
12 import dstep.objc.bridge.Bridge; | |
13 import dstep.objc.objc; | |
14 | |
15 class NSNibConnector : NSObject, INSCoding | |
16 { | |
17 mixin (ObjcWrap); | |
18 | |
19 this (NSCoder aDecoder) | |
20 { | |
21 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); | |
22 } | |
23 | |
24 void encodeWithCoder (NSCoder aCoder) | |
25 { | |
26 return invokeObjcSelf!(void, "encodeWithCoder:", NSCoder)(aCoder); | |
27 } | |
28 | |
29 typeof(this) initWithCoder (NSCoder aDecoder) | |
30 { | |
31 return invokeObjcSelf!(typeof(this), "initWithCoder:", NSCoder)(aDecoder); | |
32 } | |
33 | |
34 Object source () | |
35 { | |
36 return invokeObjcSelf!(Object, "source"); | |
37 } | |
38 | |
39 void setSource (Object source) | |
40 { | |
41 return invokeObjcSelf!(void, "setSource:", Object)(source); | |
42 } | |
43 | |
44 Object destination () | |
45 { | |
46 return invokeObjcSelf!(Object, "destination"); | |
47 } | |
48 | |
49 void setDestination (Object destination) | |
50 { | |
51 return invokeObjcSelf!(void, "setDestination:", Object)(destination); | |
52 } | |
53 | |
54 NSString label () | |
55 { | |
56 return invokeObjcSelf!(NSString, "label"); | |
57 } | |
58 | |
59 void setLabel (NSString label) | |
60 { | |
61 return invokeObjcSelf!(void, "setLabel:", NSString)(label); | |
62 } | |
63 | |
64 void replaceObject (Object oldObject, Object newObject) | |
65 { | |
66 return invokeObjcSelf!(void, "replaceObject:withObject:", Object, Object)(oldObject, newObject); | |
67 } | |
68 | |
69 void establishConnection () | |
70 { | |
71 return invokeObjcSelf!(void, "establishConnection"); | |
72 } | |
73 | |
74 } | |
75 |