Mercurial > projects > dstep
comparison dstep/appkit/NSView.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 |
---|---|
376 | 376 |
377 `; | 377 `; |
378 | 378 |
379 class NSView : NSResponder | 379 class NSView : NSResponder |
380 { | 380 { |
381 mixin (ObjcWrap); | 381 mixin ObjcWrap; |
382 | |
383 this (id object) | |
384 { | |
385 super(object); | |
386 } | |
382 | 387 |
383 NSView initWithFrame (NSRect frameRect) | 388 NSView initWithFrame (NSRect frameRect) |
384 { | 389 { |
385 id result = invokeObjcSelf!(id, "initWithFrame:", NSRect)(frameRect); | 390 id result = invokeObjcSelf!(id, "initWithFrame:", NSRect)(frameRect); |
386 return result is this.objcObject ? this : (result !is null ? new NSView(result) : null); | 391 return result is this.objcObject ? this : (result !is null ? new NSView(result) : null); |