Guest User

Untitled

a guest
Jan 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. @interface NSFileReference : NSObject {
  2. // internal storage would probably be NSURL, but could be
  3. // NSString holding a path, FSRef, alias data, whatever
  4. }
  5.  
  6. - (id)initWithPath: (NSString *)path;
  7. - (id)initWithFileSystemRepresentation: (const char *)path;
  8. - (id)initWithFSRef: (FSRef *)ref;
  9. - (id)initWithAliasData: (NSData *)data;
  10. - (id)initWithURL: (NSURL *)url;
  11.  
  12. - (NSString *)path;
  13. - (const char *)fileSystemRepresentation;
  14. - (BOOL)getFSRef: (FSRef *)outRef;
  15. - (NSData *)aliasData;
  16. - (NSURL *)url;
  17.  
  18. // in a perfect world, these two would return two different classes too
  19. - (NSString *)name;
  20. - (NSString *)displayName;
  21.  
  22. - (NSArray *)displayComponents;
  23.  
  24. - (NSFileReference *)parent;
  25. - (NSFileReference *)childNamed: (NSString *)name;
  26.  
  27. @end
Add Comment
Please, Sign In to add comment