Mercurial > projects > dstep
comparison dstep/appkit/NSToolbar.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 |
---|---|
60 NSToolbarSizeModeSmall | 60 NSToolbarSizeModeSmall |
61 } | 61 } |
62 | 62 |
63 class NSToolbar : NSObject | 63 class NSToolbar : NSObject |
64 { | 64 { |
65 mixin (ObjcWrap); | 65 mixin ObjcWrap; |
66 | |
67 this (id object) | |
68 { | |
69 super(object); | |
70 } | |
66 | 71 |
67 NSToolbar initWithIdentifier (NSString identifier) | 72 NSToolbar initWithIdentifier (NSString identifier) |
68 { | 73 { |
69 id result = invokeObjcSelf!(id, "initWithIdentifier:", NSString)(identifier); | 74 id result = invokeObjcSelf!(id, "initWithIdentifier:", NSString)(identifier); |
70 return result is this.objcObject ? this : (result !is null ? new NSToolbar(result) : null); | 75 return result is this.objcObject ? this : (result !is null ? new NSToolbar(result) : null); |