Re: Unregistering KVO observers-solved

2008-04-21 Thread Steve Nicholson
On Apr 18, 2008, at 2:35 PM, Hal Mueller wrote: Maybe try [[NSNotificationCenter defaultCenter] removeObserver:nil name:nil object:self] in your dealloc method? I think that will patch the symptom, but I still don't understand why you're getting the original error. I tried that, but no

Re: Unregistering KVO observers

2008-04-18 Thread Hal Mueller
Maybe try [[NSNotificationCenter defaultCenter] removeObserver:nil name:nil object:self] in your dealloc method? I think that will patch the symptom, but I still don't understand why you're getting the original error. This bit looks important though. Makes me wonder if you've got things

Unregistering KVO observers

2008-04-17 Thread Steve Nicholson
I'm using NSDocument/NSWindowController with bindings in the NSWindowController subclass set up in Interface Builder. When I close the window, I get the message An instance 0x306860 of class Problem is being deallocated while key value observers are still registered with it. I'd like to

Re: Unregistering KVO observers

2008-04-17 Thread Hal Mueller
Look at Malcolm Crawford's Graphics Bindings example, which contains among other things two methods on GraphicsView to start and stop observation when an object of that class is created or destroyed. http://homepage.mac.com/mmalc/CocoaExamples/controllers.html I use

Re: Unregistering KVO observers

2008-04-17 Thread Steve Nicholson
On Apr 17, 2008, at 9:01 PM, Hal Mueller wrote: Look at Malcolm Crawford's Graphics Bindings example, which contains among other things two methods on GraphicsView to start and stop observation when an object of that class is created or destroyed.