mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
32 lines
701 B
Objective-C
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
|