forked from SVGKit/SVGKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGKSource.m
More file actions
55 lines (41 loc) · 906 Bytes
/
Copy pathSVGKSource.m
File metadata and controls
55 lines (41 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#import "SVGKSource.h"
@implementation SVGKSource
@synthesize svgLanguageVersion;
@synthesize stream;
- (id)initWithInputSteam:(NSInputStream*)s {
self = [super init];
if (!self)
return nil;
self.stream = s;
return self;
}
- (id) initForCopying
{
self = [super init];
if( !self )
return nil;
return self;
}
- (SVGKSource *)sourceFromRelativePath:(NSString *)path {
return nil;
}
-(id)copyWithZone:(NSZone *)zone
{
id copy = [[[self class] allocWithZone:zone] initForCopying];
if( copy )
{
[copy setApproximateLengthInBytesOr0:self.approximateLengthInBytesOr0];
}
return copy;
}
-(NSString *)keyForAppleDictionaries
{
NSAssert(false, @"Subclasses MUST implement this property/method in their own way and stick to Apple's rules for Keys in NSDictionary");
return nil;
}
- (void)dealloc {
self.svgLanguageVersion = nil;
self.stream = nil;
[super dealloc];
}
@end