comparison dstep/foundation/NSOperation.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
57 NSOperationQueueDefaultMaxConcurrentOperationCount = -1 57 NSOperationQueueDefaultMaxConcurrentOperationCount = -1
58 } 58 }
59 59
60 class NSOperation : NSObject 60 class NSOperation : NSObject
61 { 61 {
62 mixin (ObjcWrap); 62 mixin ObjcWrap;
63
64 this (id object)
65 {
66 super(object);
67 }
63 68
64 this () 69 this ()
65 { 70 {
66 super(typeof(this).alloc.init.objcObject); 71 super(typeof(this).alloc.init.objcObject);
67 } 72 }
137 } 142 }
138 } 143 }
139 144
140 class NSOperationQueue : NSObject 145 class NSOperationQueue : NSObject
141 { 146 {
142 mixin (ObjcWrap); 147 mixin ObjcWrap;
148
149 this (id object)
150 {
151 super(object);
152 }
143 153
144 this () 154 this ()
145 { 155 {
146 super(typeof(this).alloc.init.objcObject); 156 super(typeof(this).alloc.init.objcObject);
147 } 157 }
192 } 202 }
193 } 203 }
194 204
195 class NSInvocationOperation : NSOperation 205 class NSInvocationOperation : NSOperation
196 { 206 {
197 mixin (ObjcWrap); 207 mixin ObjcWrap;
208
209 this (id object)
210 {
211 super(object);
212 }
198 213
199 this () 214 this ()
200 { 215 {
201 super(typeof(this).alloc.init.objcObject); 216 super(typeof(this).alloc.init.objcObject);
202 } 217 }