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

32 lines
701 B
Objective-C

#import <AppKit/NSRaise.h>
#import <Foundation/NSKeyedUnarchiver.h>
#import <Foundation/NSString.h>
#import <QuartzCore/CIAffineTransform.h>
@implementation CIAffineTransform
- (void) encodeWithCoder: (NSCoder *) coder {
NSUnimplementedMethod();
}
- initWithCoder: (NSCoder *) coder {
if ([coder allowsKeyedCoding]) {
NSKeyedUnarchiver *keyed = (NSKeyedUnarchiver *) coder;
_transform = [[keyed decodeObjectForKey: @"CI_inputTransform"] copy];
_ciEnabled = [keyed decodeBoolForKey: @"CIEnabled"];
}
return self;
}
- (void) dealloc {
[_transform release];
[super dealloc];
}
- (NSAffineTransform *) affineTransform {
return _transform;
}
@end