comparison dstep/foundation/NSConnection.d @ 25:b9de51448c6b

Added an id constructor. Changed the string mixin to a template mixin. Added support for building as a dynamic library
author Jacob Carlborg <doob@me.com>
date Tue, 06 Apr 2010 11:37:27 +0200
parents 19885b43130e
children
comparison
equal deleted inserted replaced
24:ab33fc0c3fc1 25:b9de51448c6b
107 //mixin ObjcBindMethod!(createConversationForConnection, "createConversationForConnection:"); 107 //mixin ObjcBindMethod!(createConversationForConnection, "createConversationForConnection:");
108 `; 108 `;
109 109
110 class NSDistantObjectRequest : NSObject 110 class NSDistantObjectRequest : NSObject
111 { 111 {
112 mixin (ObjcWrap); 112 mixin ObjcWrap;
113
114 this (id object)
115 {
116 super(object);
117 }
113 118
114 this () 119 this ()
115 { 120 {
116 super(typeof(this).alloc.init.objcObject); 121 super(typeof(this).alloc.init.objcObject);
117 } 122 }
142 } 147 }
143 } 148 }
144 149
145 class NSConnection : NSObject 150 class NSConnection : NSObject
146 { 151 {
147 mixin (ObjcWrap); 152 mixin ObjcWrap;
153
154 this (id object)
155 {
156 super(object);
157 }
148 158
149 this () 159 this ()
150 { 160 {
151 super(typeof(this).alloc.init.objcObject); 161 super(typeof(this).alloc.init.objcObject);
152 } 162 }