comparison dstep/foundation/NSURLResponse.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
17 import dstep.objc.bridge.Bridge; 17 import dstep.objc.bridge.Bridge;
18 import dstep.objc.objc; 18 import dstep.objc.objc;
19 19
20 class NSHTTPURLResponse : NSURLResponse 20 class NSHTTPURLResponse : NSURLResponse
21 { 21 {
22 mixin (ObjcWrap); 22 mixin ObjcWrap;
23
24 this (id object)
25 {
26 super(object);
27 }
23 28
24 this () 29 this ()
25 { 30 {
26 super(typeof(this).alloc.init.objcObject); 31 super(typeof(this).alloc.init.objcObject);
27 } 32 }
47 } 52 }
48 } 53 }
49 54
50 class NSURLResponse : NSObject, INSCoding, INSCopying 55 class NSURLResponse : NSObject, INSCoding, INSCopying
51 { 56 {
52 mixin (ObjcWrap); 57 mixin ObjcWrap;
58
59 this (id object)
60 {
61 super(object);
62 }
53 63
54 this () 64 this ()
55 { 65 {
56 super(typeof(this).alloc.init.objcObject); 66 super(typeof(this).alloc.init.objcObject);
57 } 67 }