Skip to content

Commit

Permalink
Add save
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Apr 8, 2012
1 parent b486d65 commit e0572e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions SSManagedObject.h
Expand Up @@ -39,6 +39,7 @@
- (NSRelationshipDescription *)relationshipForKeyPath:(NSString *)keyPath;

// Manipulation
- (void)save;
- (void)delete;

@end
7 changes: 6 additions & 1 deletion SSManagedObject.m
Expand Up @@ -197,8 +197,13 @@ - (NSRelationshipDescription *)relationshipForKeyPath:(NSString *)keyPath {

#pragma mark - Manipulation

- (void)save {
[self.managedObjectContext save:nil];
}


- (void)delete {
[[self managedObjectContext] deleteObject:self];
[self.managedObjectContext deleteObject:self];
}


Expand Down

0 comments on commit e0572e5

Please sign in to comment.