DemoSVGObject.h 805 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // DemoSVGObject.h
  3. // Demo-OSX
  4. //
  5. // Created by C.W. Betts on 6/7/13.
  6. // Copyright (c) 2013 C.W. Betts. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol DemoSVGObject <NSObject>
  10. - (NSURL *)svgURL;
  11. - (NSString *)fileName;
  12. - (NSString *)fullFileName;
  13. @end
  14. @interface DemoSVGObject : NSObject <DemoSVGObject>
  15. - (BOOL)isEqualToURL:(NSURL*)theURL;
  16. @end
  17. @interface DemoSVGBundleObject : DemoSVGObject <DemoSVGObject>
  18. @property (readonly, strong) NSBundle *theBundle;
  19. @property (readonly, copy) NSString* fullFileName;
  20. - (id)initWithName:(NSString *)theName;
  21. - (id)initWithName:(NSString *)theName bundle:(NSBundle*)aBundle;
  22. @end
  23. @interface DemoSVGURLObject : DemoSVGObject <DemoSVGObject>
  24. @property (strong, readonly) NSURL *svgURL;
  25. - (id)initWithURL:(NSURL *)aURL;
  26. @end