Mercurial > projects > dstep
comparison dstep/appkit/NSInputServer.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 |
---|---|
14 import dstep.objc.bridge.Bridge; | 14 import dstep.objc.bridge.Bridge; |
15 import dstep.objc.objc; | 15 import dstep.objc.objc; |
16 | 16 |
17 class NSInputServer : NSObject, INSInputServiceProvider, INSInputServerMouseTracker | 17 class NSInputServer : NSObject, INSInputServiceProvider, INSInputServerMouseTracker |
18 { | 18 { |
19 mixin (ObjcWrap); | 19 mixin ObjcWrap; |
20 | |
21 this (id object) | |
22 { | |
23 super(object); | |
24 } | |
20 | 25 |
21 NSInputServer initWithDelegate (Object aDelegate, NSString name) | 26 NSInputServer initWithDelegate (Object aDelegate, NSString name) |
22 { | 27 { |
23 id result = invokeObjcSelf!(id, "initWithDelegate:name:", Object, NSString)(aDelegate, name); | 28 id result = invokeObjcSelf!(id, "initWithDelegate:name:", Object, NSString)(aDelegate, name); |
24 return result is this.objcObject ? this : (result !is null ? new NSInputServer(result) : null); | 29 return result is this.objcObject ? this : (result !is null ? new NSInputServer(result) : null); |