Mercurial > projects > dstep
comparison dstep/appkit/NSFileWrapper.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 | f8a3b67adfcb |
children |
comparison
equal
deleted
inserted
replaced
24:ab33fc0c3fc1 | 25:b9de51448c6b |
---|---|
15 import dstep.objc.bridge.Bridge; | 15 import dstep.objc.bridge.Bridge; |
16 import dstep.objc.objc; | 16 import dstep.objc.objc; |
17 | 17 |
18 class NSFileWrapper : NSObject, INSCoding | 18 class NSFileWrapper : NSObject, INSCoding |
19 { | 19 { |
20 mixin (ObjcWrap); | 20 mixin ObjcWrap; |
21 | |
22 this (id object) | |
23 { | |
24 super(object); | |
25 } | |
21 | 26 |
22 this (NSCoder aDecoder) | 27 this (NSCoder aDecoder) |
23 { | 28 { |
24 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); | 29 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); |
25 } | 30 } |