Added PasteboardController to handle pasteboard cleanup on shutdown and timeout

This commit is contained in:
michael starke
2013-03-02 23:31:28 +01:00
parent b26434569c
commit b021aefd51
17 changed files with 504 additions and 156 deletions

View File

@@ -0,0 +1,23 @@
//
// MPPastBoardController.h
// MacPass
//
// Created by Michael Starke on 02.03.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MPPasteBoardController : NSObject
/*
This time sets the time interval after which a copied entry shoudl be purged from the pasteboard
*/
@property (assign, nonatomic) NSTimeInterval clearTimeout;
@property (assign, nonatomic) BOOL clearPasteboardOnShutdown;
+ (MPPasteBoardController *)defaultController;
- (void)copyObjects:(NSArray *)objects;
@end