Commit 60c71ff3 authored by Carola Nitz's avatar Carola Nitz Committed by Felix Paul Kühne

remove function for folder deletion

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 04e7e16e
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
// May be internal // May be internal
- (NSFetchRequest *)fetchRequestForEntity:(NSString *)entity; - (NSFetchRequest *)fetchRequestForEntity:(NSString *)entity;
- (id)createObjectForEntity:(NSString *)entity; - (id)createObjectForEntity:(NSString *)entity;
- (void)removeObject:(NSManagedObject *)object;
- (NSString *)thumbnailFolderPath; - (NSString *)thumbnailFolderPath;
- (void)applicationWillStart; - (void)applicationWillStart;
......
...@@ -102,6 +102,11 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles"; ...@@ -102,6 +102,11 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
return [NSEntityDescription insertNewObjectForEntityForName:entity inManagedObjectContext:moc]; return [NSEntityDescription insertNewObjectForEntityForName:entity inManagedObjectContext:moc];
} }
- (void)removeObject:(NSManagedObject *)object
{
[[self managedObjectContext] deleteObject:object];
}
#pragma mark - #pragma mark -
#pragma mark Media Library #pragma mark Media Library
- (NSManagedObjectModel *)managedObjectModel - (NSManagedObjectModel *)managedObjectModel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment