Mercurial > projects > dstep
comparison dstep/foundation/NSLock.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 |
---|---|
13 import dstep.objc.bridge.Bridge; | 13 import dstep.objc.bridge.Bridge; |
14 import dstep.objc.objc; | 14 import dstep.objc.objc; |
15 | 15 |
16 class NSLock : NSObject, INSLocking | 16 class NSLock : NSObject, INSLocking |
17 { | 17 { |
18 mixin (ObjcWrap); | 18 mixin ObjcWrap; |
19 | |
20 this (id object) | |
21 { | |
22 super(object); | |
23 } | |
19 | 24 |
20 this () | 25 this () |
21 { | 26 { |
22 super(typeof(this).alloc.init.objcObject); | 27 super(typeof(this).alloc.init.objcObject); |
23 } | 28 } |
58 } | 63 } |
59 } | 64 } |
60 | 65 |
61 class NSCondition : NSObject, INSLocking | 66 class NSCondition : NSObject, INSLocking |
62 { | 67 { |
63 mixin (ObjcWrap); | 68 mixin ObjcWrap; |
69 | |
70 this (id object) | |
71 { | |
72 super(object); | |
73 } | |
64 | 74 |
65 this () | 75 this () |
66 { | 76 { |
67 super(typeof(this).alloc.init.objcObject); | 77 super(typeof(this).alloc.init.objcObject); |
68 } | 78 } |
113 } | 123 } |
114 } | 124 } |
115 | 125 |
116 class NSConditionLock : NSObject, INSLocking | 126 class NSConditionLock : NSObject, INSLocking |
117 { | 127 { |
118 mixin (ObjcWrap); | 128 mixin ObjcWrap; |
129 | |
130 this (id object) | |
131 { | |
132 super(object); | |
133 } | |
119 | 134 |
120 this () | 135 this () |
121 { | 136 { |
122 super(typeof(this).alloc.init.objcObject); | 137 super(typeof(this).alloc.init.objcObject); |
123 } | 138 } |
193 } | 208 } |
194 } | 209 } |
195 | 210 |
196 class NSRecursiveLock : NSObject, INSLocking | 211 class NSRecursiveLock : NSObject, INSLocking |
197 { | 212 { |
198 mixin (ObjcWrap); | 213 mixin ObjcWrap; |
214 | |
215 this (id object) | |
216 { | |
217 super(object); | |
218 } | |
199 | 219 |
200 this () | 220 this () |
201 { | 221 { |
202 super(typeof(this).alloc.init.objcObject); | 222 super(typeof(this).alloc.init.objcObject); |
203 } | 223 } |