Files
MacPass/MacPass/MPDocument+HistoryBrowsing.m
michael starke 51bb22a9b7 Moving more stuff about context bar into the document away from the EntryViewController.
Some refactorings considering notification registration.
2014-02-26 21:17:35 +01:00

26 lines
752 B
Objective-C

//
// MPDocument+HistoryBrowsing.m
// MacPass
//
// Created by Michael Starke on 26.02.14.
// Copyright (c) 2014 HicknHack Software GmbH. All rights reserved.
//
#import "MPDocument+HistoryBrowsing.h"
NSString *const MPDocumentDidEnterHistoryNotification = @"MPDocumentDidEnterHistoryNotification";
NSString *const MPDocumentDidExitHistoryNotification = @"MPDocumentDidExitHistoryNotification";
@implementation MPDocument (HistoryBrowsing)
- (void)showHistory:(id)sender {
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidEnterHistoryNotification object:self];
}
- (void)exitHistory:(id)sender {
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidExitHistoryNotification object:self];
}
@end