More drafting on history browsing

This commit is contained in:
michael starke
2014-08-20 01:22:54 +02:00
parent e1d38ad6e2
commit ac3a41e4a0
7 changed files with 70 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ NSString *const MPDocumentDidExitHistoryNotification = @"MPDocumentDidExitHisto
@implementation MPDocument (HistoryBrowsing)
- (void)showHistory:(id)sender {
NSAssert(self.selectedEntry && self.selectedItem == (id)self.selectedEntry, @"Entry needs to be selected for history browsing!");
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidEnterHistoryNotification object:self];
}