darling-cocotron/QuartzCore/CIAffineTransform.m

32 lines
701 B
Mathematica
Raw Normal View History

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