SVGKSource.m 816 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #import "SVGKSource.h"
  2. @implementation SVGKSource
  3. @synthesize svgLanguageVersion;
  4. @synthesize stream;
  5. - (id)initWithInputSteam:(NSInputStream*)s {
  6. self = [super init];
  7. if (!self)
  8. return nil;
  9. self.stream = s;
  10. return self;
  11. }
  12. - (id) initForCopying
  13. {
  14. self = [super init];
  15. if( !self )
  16. return nil;
  17. return self;
  18. }
  19. - (SVGKSource *)sourceFromRelativePath:(NSString *)path {
  20. return nil;
  21. }
  22. -(id)copyWithZone:(NSZone *)zone
  23. {
  24. id copy = [[[self class] allocWithZone:zone] initForCopying];
  25. if( copy )
  26. {
  27. [copy setApproximateLengthInBytesOr0:self.approximateLengthInBytesOr0];
  28. }
  29. return copy;
  30. }
  31. -(NSString *)keyForAppleDictionaries
  32. {
  33. NSAssert(false, @"Subclasses MUST implement this property/method in their own way and stick to Apple's rules for Keys in NSDictionary");
  34. return nil;
  35. }
  36. @end