Mercurial > projects > dstep
comparison dstep/appkit/NSFormCell.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 |
---|---|
43 | 43 |
44 `; | 44 `; |
45 | 45 |
46 class NSFormCell : NSActionCell | 46 class NSFormCell : NSActionCell |
47 { | 47 { |
48 mixin (ObjcWrap); | 48 mixin ObjcWrap; |
49 | |
50 this (id object) | |
51 { | |
52 super(object); | |
53 } | |
49 | 54 |
50 NSFormCell initTextCell (NSString aString) | 55 NSFormCell initTextCell (NSString aString) |
51 { | 56 { |
52 id result = invokeObjcSelf!(id, "initTextCell:", NSString)(aString); | 57 id result = invokeObjcSelf!(id, "initTextCell:", NSString)(aString); |
53 return result is this.objcObject ? this : (result !is null ? new NSFormCell(result) : null); | 58 return result is this.objcObject ? this : (result !is null ? new NSFormCell(result) : null); |