Mercurial > projects > dstep
comparison dstep/foundation/NSArray.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 |
---|---|
375 } | 375 } |
376 `; | 376 `; |
377 | 377 |
378 class NSMutableArray : NSArray | 378 class NSMutableArray : NSArray |
379 { | 379 { |
380 mixin (ObjcWrap); | 380 mixin ObjcWrap; |
381 | |
382 this (id object) | |
383 { | |
384 super(object); | |
385 } | |
381 | 386 |
382 this () | 387 this () |
383 { | 388 { |
384 super(typeof(this).alloc.init.objcObject); | 389 super(typeof(this).alloc.init.objcObject); |
385 } | 390 } |
523 } | 528 } |
524 } | 529 } |
525 | 530 |
526 class NSArray : NSObject, INSCopying, INSMutableCopying, INSCoding, INSFastEnumeration | 531 class NSArray : NSObject, INSCopying, INSMutableCopying, INSCoding, INSFastEnumeration |
527 { | 532 { |
528 mixin (ObjcWrap); | 533 mixin ObjcWrap; |
534 | |
535 this (id object) | |
536 { | |
537 super(object); | |
538 } | |
529 | 539 |
530 this () | 540 this () |
531 { | 541 { |
532 super(typeof(this).alloc.init.objcObject); | 542 super(typeof(this).alloc.init.objcObject); |
533 } | 543 } |