darling-cocotron/QuartzCore/CATransactionGroup.m
2020-05-12 17:04:15 -04:00

28 lines
769 B
Objective-C

#import "CATransactionGroup.h"
#import <Foundation/NSDictionary.h>
#import <Foundation/NSNumber.h>
#import <QuartzCore/CATransaction.h>
@implementation CATransactionGroup
- init {
_values = [[NSMutableDictionary alloc] init];
[_values setObject: [NSNumber numberWithFloat: 0.25]
forKey: kCATransactionAnimationDuration];
[_values setObject: [NSNumber numberWithBool: NO]
forKey: kCATransactionDisableActions];
// kCATransactionAnimationTimingFunction default is nil
// kCATransactionCompletionBlock default is nil
return self;
}
- valueForKey: (NSString *) key {
return [_values objectForKey: key];
}
- (void) setValue: value forKey: (NSString *) key {
[_values setObject: value forKey: key];
}
@end