mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-30 07:20:35 +00:00
44 lines
741 B
Objective-C
44 lines
741 B
Objective-C
#import <QuartzCore/CAAnimation.h>
|
|
|
|
@implementation CAPropertyAnimation
|
|
|
|
- initWithKeyPath: (NSString *) keyPath {
|
|
[super init];
|
|
_keyPath = [keyPath copy];
|
|
_additive = NO;
|
|
_cumulative = NO;
|
|
return self;
|
|
}
|
|
|
|
+ animationWithKeyPath: (NSString *) keyPath {
|
|
return [[[self alloc] initWithKeyPath: keyPath] autorelease];
|
|
}
|
|
|
|
- (NSString *) keyPath {
|
|
return _keyPath;
|
|
}
|
|
|
|
- (void) setKeyPath: (NSString *) value {
|
|
value = [value copy];
|
|
[_keyPath release];
|
|
_keyPath = value;
|
|
}
|
|
|
|
- (BOOL) isAdditive {
|
|
return _additive;
|
|
}
|
|
|
|
- (void) setAdditive: (BOOL) value {
|
|
_additive = value;
|
|
}
|
|
|
|
- (BOOL) isCumulative {
|
|
return _cumulative;
|
|
}
|
|
|
|
- (void) setCumulative: (BOOL) value {
|
|
_cumulative = value;
|
|
}
|
|
|
|
@end
|