more appropriate category name

This commit is contained in:
michael starke
2017-04-24 12:05:28 +02:00
parent 3f86982339
commit 24899fb402
3 changed files with 10 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
NSString *const MPDocumentShowEntryHistoryNotification = @"MPDocumentShowEntryHistoryNotification";
NSString *const MPDocumentHideEntryHistoryNotification = @"MPDocumentHideEntryHistoryNotification";
@implementation MPDocument (HistoryBrowsing)
@implementation MPDocument (History)
- (void)showEntryHistory:(id)sender {
id<MPTargetNodeResolving> resolver = [NSApp targetForAction:@selector(currentTargetEntries)];
@@ -32,5 +32,9 @@ NSString *const MPDocumentHideEntryHistoryNotification = @"MPDocumentHideEntryH
object:self];
}
- (void)restoreEntry:(KPKEntry *)entry toEntry:(KPKEntry *)historyEntry {
[entry revertToEntry:historyEntry];
[self.undoManager setActionName:NSLocalizedString(@"RESTORE_HISTORY_ENTRY", "Action to restore and Entry to a previous state of it's history")];
}
@end

View File

@@ -229,7 +229,7 @@ FOUNDATION_EXPORT NSString *const MPDocumentGroupKey;
FOUNDATION_EXPORT NSString *const MPDocumentShowEntryHistoryNotification;
FOUNDATION_EXPORT NSString *const MPDocumentHideEntryHistoryNotification;
@interface MPDocument (HistoryBrowsing)
@interface MPDocument (History)
- (IBAction)showEntryHistory:(id)sender;
- (IBAction)hideEntryHistory:(id)sender;