FROM : Rick Mann
DATE : Sat May 31 09:48:36 2008
On May 31, 2008, at 00:32:30, j o a r wrote:
> Search for "NSKeyValueObservingOptionNew" here:
Already using that:
[mItemsController addObserver: self
forKeyPath: @"selection.number"
options: (NSKeyValueObservingOptionNew)
context: NULL];
> What happens if you call "-valueForKeyPath:" instead of "-
> valueForKey:"?
Argh! That works. I'm so used to the Java version that doesn't
distinguish between a key and a path. Thanks!
--
Rick
DATE : Sat May 31 09:48:36 2008
On May 31, 2008, at 00:32:30, j o a r wrote:
> Search for "NSKeyValueObservingOptionNew" here:
Already using that:
[mItemsController addObserver: self
forKeyPath: @"selection.number"
options: (NSKeyValueObservingOptionNew)
context: NULL];
> What happens if you call "-valueForKeyPath:" instead of "-
> valueForKey:"?
Argh! That works. I'm so used to the Java version that doesn't
distinguish between a key and a path. Thanks!
--
Rick






Cocoa mail archive

