Mercurial > projects > dstep
comparison dstep/appkit/NSViewController.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 |
---|---|
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 NSViewController : NSResponder | 18 class NSViewController : NSResponder |
19 { | 19 { |
20 mixin (ObjcWrap); | 20 mixin ObjcWrap; |
21 | |
22 this (id object) | |
23 { | |
24 super(object); | |
25 } | |
21 | 26 |
22 NSViewController initWithNibName (NSString nibNameOrNil, NSBundle nibBundleOrNil) | 27 NSViewController initWithNibName (NSString nibNameOrNil, NSBundle nibBundleOrNil) |
23 { | 28 { |
24 id result = invokeObjcSelf!(id, "initWithNibName:bundle:", NSString, NSBundle)(nibNameOrNil, nibBundleOrNil); | 29 id result = invokeObjcSelf!(id, "initWithNibName:bundle:", NSString, NSBundle)(nibNameOrNil, nibBundleOrNil); |
25 return result is this.objcObject ? this : (result !is null ? new NSViewController(result) : null); | 30 return result is this.objcObject ? this : (result !is null ? new NSViewController(result) : null); |