Mercurial > projects > dstep
comparison dstep/foundation/NSDictionary.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 |
---|---|
247 } | 247 } |
248 `; | 248 `; |
249 | 249 |
250 class NSMutableDictionary : NSDictionary | 250 class NSMutableDictionary : NSDictionary |
251 { | 251 { |
252 mixin (ObjcWrap); | 252 mixin ObjcWrap; |
253 | |
254 this (id object) | |
255 { | |
256 super(object); | |
257 } | |
253 | 258 |
254 this () | 259 this () |
255 { | 260 { |
256 super(typeof(this).alloc.init.objcObject); | 261 super(typeof(this).alloc.init.objcObject); |
257 } | 262 } |
309 } | 314 } |
310 } | 315 } |
311 | 316 |
312 class NSDictionary : NSObject, INSCopying, INSMutableCopying, INSCoding, INSFastEnumeration | 317 class NSDictionary : NSObject, INSCopying, INSMutableCopying, INSCoding, INSFastEnumeration |
313 { | 318 { |
314 mixin (ObjcWrap); | 319 mixin ObjcWrap; |
320 | |
321 this (id object) | |
322 { | |
323 super(object); | |
324 } | |
315 | 325 |
316 this () | 326 this () |
317 { | 327 { |
318 super(typeof(this).alloc.init.objcObject); | 328 super(typeof(this).alloc.init.objcObject); |
319 } | 329 } |