Changes to config-file structure.
5 // Created by Jens Alfke on 2/25/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import <Cocoa/Cocoa.h>
13 MYKeyValueObservingOptionOnce = 1<<31,
14 MYKeyValueObservingOptionDelayed = 1<<30
19 @interface Observance : NSObject
24 NSKeyValueObservingOptions _options;
28 - (id) initWithTarget: (id)target
30 observed: (id)observed
31 keyPath: (NSString*)keyPath
32 options: (NSKeyValueObservingOptions)options;
34 - (void) stopObserving;
36 @property (readonly) id observed;
37 @property (readonly) NSString* keyPath;
43 @interface Observer : NSObject
46 NSMutableArray *_observances;
49 - (id) initWithTarget: (id)target;
51 @property (readonly) id target;
53 - (void) observe: (id)observed
54 keyPath: (NSString*)keyPath
55 options: (NSKeyValueObservingOptions)options
58 - (void) observe: (id)observed
59 keyPath: (NSString*)keyPath
62 /** observed or keyPath may be nil, meaning wildcard */
63 - (void) stopObserving: (id)observedOrNil keyPath: (NSString*)keyPathOrNil;
64 - (void) stopObserving: (id)observed;
65 - (void) stopObserving;