Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / QuartzCore / CAPropertyAnimation.m
blob7d1ee92446047af081d44982478c0ebb37263940
1 #import <QuartzCore/CAAnimation.h>
3 @implementation CAPropertyAnimation
5 -initWithKeyPath:(NSString *)keyPath {
6    [super init];
7    _keyPath=[keyPath copy];
8    _additive=NO;
9    _cumulative=NO;
10    return self;
13 +animationWithKeyPath:(NSString *)keyPath {
14    return [[[self alloc] initWithKeyPath:keyPath] autorelease];
17 -(NSString *)keyPath {
18    return _keyPath;
21 -(void)setKeyPath:(NSString *)value {
22    value=[value copy];
23    [_keyPath release];
24    _keyPath=value;
27 -(BOOL)isAdditive {
28    return _additive;
31 -(void)setAdditive:(BOOL)value {
32    _additive=value;
35 -(BOOL)isCumulative {
36    return _cumulative;
39 -(void)setCumulative:(BOOL)value {
40    _cumulative=value;
43 @end