Mercurial > projects > dstep
comparison dstep/foundation/NSAttributedString.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 |
---|---|
147 } | 147 } |
148 `; | 148 `; |
149 | 149 |
150 class NSMutableAttributedString : NSAttributedString | 150 class NSMutableAttributedString : NSAttributedString |
151 { | 151 { |
152 mixin (ObjcWrap); | 152 mixin ObjcWrap; |
153 | |
154 this (id object) | |
155 { | |
156 super(object); | |
157 } | |
153 | 158 |
154 this () | 159 this () |
155 { | 160 { |
156 super(typeof(this).alloc.init.objcObject); | 161 super(typeof(this).alloc.init.objcObject); |
157 } | 162 } |
357 } | 362 } |
358 } | 363 } |
359 | 364 |
360 class NSAttributedString : NSObject, INSCopying, INSMutableCopying, INSCoding | 365 class NSAttributedString : NSObject, INSCopying, INSMutableCopying, INSCoding |
361 { | 366 { |
362 mixin (ObjcWrap); | 367 mixin ObjcWrap; |
368 | |
369 this (id object) | |
370 { | |
371 super(object); | |
372 } | |
363 | 373 |
364 | 374 |
365 this () | 375 this () |
366 { | 376 { |
367 super(typeof(this).alloc.init.objcObject); | 377 super(typeof(this).alloc.init.objcObject); |