Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-26 Thread Marc Van Olmen
I just wanted to update this thread so that people that google for info see this update. I got a confirmation from Apple that they are aware of this bug and that they are working on it. regards, Marc On Mar 19, 2009, at 6:16 PM, m...@sky4studios.be wrote: On Mar 19, 2009, at 12:03, m

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-20 Thread Steve Steinitz
Hi Marc and Quincy On 19/3/09, m...@sky4studios.be wrote: 'NSInternalInconsistencyException', reason: 'Cannot remove an observer for the key path "targetPhoto.name" from , most likely because the value for the key "targetPhoto" has changed without an appropriate KVO notification being sent. Ch

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread mvo
> On Mar 19, 2009, at 12:03, m...@sky4studios.be wrote: > >> In this narrowed down code of the bug it will log this on >> removeObserver >> (please ignore the Terminating app due to uncaught exception >> 'NSInternalInconsistencyException', reason) because I just created >> simple >> main sample co

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread Quincey Morris
On Mar 19, 2009, at 12:03, m...@sky4studios.be wrote: In this narrowed down code of the bug it will log this on removeObserver (please ignore the Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason) because I just created simple main sample code to narrow i

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread mvo
> On Mar 19, 2009, at 11:18, m...@sky4studios.be wrote: > >>> Based on what you've posted, your source code looks rather messed up. >>> Presumably you have a NSArrayController subclass with a "targetPhoto" >>> property. What kind of property? Is it an array object? >> >> Did you look at the code? T

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread Quincey Morris
On Mar 19, 2009, at 11:18, m...@sky4studios.be wrote: Based on what you've posted, your source code looks rather messed up. Presumably you have a NSArrayController subclass with a "targetPhoto" property. What kind of property? Is it an array object? Did you look at the code? The sample code is

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread mvo
> Based on what you've posted, your source code looks rather messed up. > Presumably you have a NSArrayController subclass with a "targetPhoto" > property. What kind of property? Is it an array object? Did you look at the code? The sample code is right there it will tell you what class it is. >

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread Quincey Morris
On Mar 19, 2009, at 09:53, m...@sky4studios.be wrote: Bug in short Terms: KVO or Bindings with a custom key like "targetPhoto" here in my example doesn't work properly when that keyPath contains an extra element like "targetPhoto.name" and when the object is an NSController or (subclass becaus

Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-19 Thread mvo
Hi, I want to report a bug (will file an official bug at bugreporter.apple.com in a second but wanted to share this with the list to see if any one else saw this. I included a simple sample code to reproduce it, this sample code also contains a fix. Bug in short Terms: KVO or Bindings with a cust