Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / QuartzCore / CIAffineTransform.m
blob188f676e9fb06d108bd887070002bafb6d9659e4
1 #import <QuartzCore/CIAffineTransform.h>
2 #import <Foundation/NSKeyedUnarchiver.h>
3 #import <Foundation/NSString.h>
4 #import <AppKit/NSRaise.h>
6 @implementation CIAffineTransform
8 -(void)encodeWithCoder:(NSCoder *)coder {
9    NSUnimplementedMethod();
12 -initWithCoder:(NSCoder *)coder {
13    if([coder allowsKeyedCoding]){
14     NSKeyedUnarchiver *keyed=(NSKeyedUnarchiver *)coder;
15     
16     _transform=[[keyed decodeObjectForKey:@"CI_inputTransform"] copy];
17     _ciEnabled=[keyed decodeBoolForKey:@"CIEnabled"];
18    }
19    return self;
22 -(void)dealloc {
23   [_transform release];
24   [super dealloc];
27 -(NSAffineTransform *)affineTransform {
28    return _transform;
31 @end