Mercurial > projects > dstep
comparison dstep/appkit/NSColorPicker.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 |
---|---|
18 import dstep.objc.bridge.Bridge; | 18 import dstep.objc.bridge.Bridge; |
19 import dstep.objc.objc; | 19 import dstep.objc.objc; |
20 | 20 |
21 class NSColorPicker : NSObject, INSColorPickingDefault | 21 class NSColorPicker : NSObject, INSColorPickingDefault |
22 { | 22 { |
23 mixin (ObjcWrap); | 23 mixin ObjcWrap; |
24 | |
25 this (id object) | |
26 { | |
27 super(object); | |
28 } | |
24 | 29 |
25 NSColorPicker initWithPickerMask (NSUInteger mask, NSColorPanel owningColorPanel) | 30 NSColorPicker initWithPickerMask (NSUInteger mask, NSColorPanel owningColorPanel) |
26 { | 31 { |
27 id result = invokeObjcSelf!(id, "initWithPickerMask:colorPanel:", NSUInteger, NSColorPanel)(mask, owningColorPanel); | 32 id result = invokeObjcSelf!(id, "initWithPickerMask:colorPanel:", NSUInteger, NSColorPanel)(mask, owningColorPanel); |
28 return result is this.objcObject ? this : (result !is null ? new NSColorPicker(result) : null); | 33 return result is this.objcObject ? this : (result !is null ? new NSColorPicker(result) : null); |