Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
added applicationCachesDirectory method
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Meyer committed Dec 30, 2013
1 parent 3ddee3d commit 50d63d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions RHManagedObjectContextManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
-(NSUInteger)pendingChangesCountWithError:(NSError **)error;
-(BOOL)doesRequireMigrationWithError:(NSError **)error;
-(NSString *)applicationDocumentsDirectory;
-(NSString *)applicationCachesDirectory;

@end
4 changes: 4 additions & 0 deletions RHManagedObjectContextManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,8 @@ -(NSString *)applicationDocumentsDirectory {
return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
}

-(NSString *)applicationCachesDirectory {
return [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
}

@end

0 comments on commit 50d63d6

Please sign in to comment.