KVUtils.m
changeset 3 8fad19466c59
parent 0 d84d25d6cdbb
child 11 e5976864dfe9
     1.1 --- a/KVUtils.m	Sat Mar 08 21:04:41 2008 -0800
     1.2 +++ b/KVUtils.m	Sun Apr 06 19:13:27 2008 -0700
     1.3 @@ -59,6 +59,7 @@
     1.4      }@catch( NSException *x ) {
     1.5          Warn(@"Uncaught exception in -[%@<%p> %s] while observing change of key-path %@ in %@<%p>: %@",
     1.6               _target,_target, _action, _keyPath, _observed,_observed, x);
     1.7 +        [NSApp reportException: x];
     1.8      }
     1.9  }
    1.10  
    1.11 @@ -148,6 +149,12 @@
    1.12  }
    1.13  
    1.14  
    1.15 +- (void) stopObserving: (id)observed
    1.16 +{
    1.17 +    [self stopObserving: observed keyPath: nil];
    1.18 +}
    1.19 +
    1.20 +
    1.21  - (void) stopObserving: (id)observed keyPath: (NSString*)keyPath
    1.22  {
    1.23      // observed or keyPath may be nil