Cocoa Programming

Cocoa Programming

I tried build and run CounterWithBindings5 example with supported Garbage collection. The example stopped printing into Debugger Console and it looks as if the method observeValueForKeyPath: ofObject: change: context: is not invoked by the program. What do I wrong? can somebody explain what is happening?
Thank you
Jaromir

I have found where the problem is. As the example is set up the object Display created in the NIB file is not connected to any root object and is therefore collected. The example can be easily modified (an outlet addition into UpOrDown object and connecting it with the Display object in the NIB file) to make it GC compatible.