comparison dstep/appkit/NSAnimation.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
135 NSAnimationNonblockingThreaded 135 NSAnimationNonblockingThreaded
136 } 136 }
137 137
138 class NSAnimation : NSObject, INSCopying, INSCoding 138 class NSAnimation : NSObject, INSCopying, INSCoding
139 { 139 {
140 mixin (ObjcWrap); 140 mixin ObjcWrap;
141
142 this (id object)
143 {
144 super(object);
145 }
141 146
142 this (NSCoder aDecoder) 147 this (NSCoder aDecoder)
143 { 148 {
144 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); 149 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject);
145 } 150 }
297 302
298 } 303 }
299 304
300 class NSViewAnimation : NSAnimation 305 class NSViewAnimation : NSAnimation
301 { 306 {
302 mixin (ObjcWrap); 307 mixin ObjcWrap;
308
309 this (id object)
310 {
311 super(object);
312 }
303 313
304 NSViewAnimation initWithViewAnimations (NSArray viewAnimations) 314 NSViewAnimation initWithViewAnimations (NSArray viewAnimations)
305 { 315 {
306 id result = invokeObjcSelf!(id, "initWithViewAnimations:", NSArray)(viewAnimations); 316 id result = invokeObjcSelf!(id, "initWithViewAnimations:", NSArray)(viewAnimations);
307 return result is this.objcObject ? this : (result !is null ? new NSViewAnimation(result) : null); 317 return result is this.objcObject ? this : (result !is null ? new NSViewAnimation(result) : null);