ForgeFile Class Reference
| Inherits from | NSObject |
| Declared in | ForgeFile.h ForgeFile.m |
Tasks
-
– initWithPath:Constructor with a relative path in the ‘src’ folder
-
– initWithFile:Constructor with a file object dictionary
-
– initWithObject:Helper constructor that takes either a string or dictionary
-
– urlReturn a URL that can be used in the WebView to access the resource
-
– exists:Whether or not the referenced file exists
-
– data:errorBlock:Access the files data
-
– removeAttempt to remove the file
-
– mimeTypeReturn the files mime-type (if available)
-
– toJSONReturn the files dictionary to be converted to JSON
Instance Methods
data:errorBlock:
Access the files data
- (void)data:(ForgeFileDataResultBlock)resultBlock errorBlock:(ForgeFileErrorBlock)errorBlockDeclared In
ForgeFile.mexists:
Whether or not the referenced file exists
- (void)exists:(ForgeFileExistsResultBlock)resultBlockDeclared In
ForgeFile.minitWithFile:
Constructor with a file object dictionary
- (ForgeFile *)initWithFile:(NSDictionary *)withFileDeclared In
ForgeFile.minitWithObject:
Helper constructor that takes either a string or dictionary
- (ForgeFile *)initWithObject:(NSObject *)objectDeclared In
ForgeFile.minitWithPath:
Constructor with a relative path in the ‘src’ folder
- (ForgeFile *)initWithPath:(NSString *)pathDeclared In
ForgeFile.m