Skip to content

Commit

Permalink
Add API to to die for subclasses to override to call the appropriat…
Browse files Browse the repository at this point in the history
…e API from GHStore
  • Loading branch information
ElDragonRojo committed Aug 1, 2013
1 parent 8f0a14b commit da66b91
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lemacs/GitHub/GHManagedObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
@end


@interface GHManagedObject (Deletion)
- (IBAction)die;
@end


extern const NSTimeInterval kGHStoreUpdateLimit;

extern NSString * const kGHCreatedDatePropertyName;
Expand Down
10 changes: 10 additions & 0 deletions Lemacs/GitHub/GHManagedObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,16 @@ - (void)setChangeValue:(id)changeValue forPropertyNamed:(NSString *)propertyName
@end


@implementation GHManagedObject (Deletion)

- (IBAction)die;
{
// Subclasses should override this to call the appropriate deletion method from the shared store
assert(NO);
}

@end


const NSTimeInterval kGHStoreUpdateLimit = 60.0f;

Expand Down

0 comments on commit da66b91

Please sign in to comment.