VocalEasel/Sources/VLKeyValueUndo.h

26 lines
650 B
C
Raw Permalink Normal View History

2006-12-04 07:04:24 +00:00
//
2007-04-27 06:41:34 +00:00
// File: VLKeyValueUndo.h - Automatically handle undo functionality for
// key-value paths
2006-12-04 07:04:24 +00:00
//
2007-04-27 06:41:34 +00:00
// Author(s):
//
// (MN) Matthias Neeracher
//
// Copyright © 2007-2011 Matthias Neeracher
2006-12-04 07:04:24 +00:00
//
#import <Cocoa/Cocoa.h>
typedef void (^VLKeyValueUpdateHook)(NSString * keyPath);
2006-12-04 07:04:24 +00:00
@interface VLKeyValueUndo : NSObject {
id owner;
NSDictionary * keysAndNames;
VLKeyValueUpdateHook updateHook;
2006-12-04 07:04:24 +00:00
}
- (id)initWithOwner:(id)owner keysAndNames:(NSDictionary *)keysAndNames update:(VLKeyValueUpdateHook)hook;
2006-12-04 07:04:24 +00:00
- (id)initWithOwner:(id)owner keysAndNames:(NSDictionary *)keysAndNames;
@end