small medium large xlarge

Generic-user-small
21 May 2009, 15:05
Jaromir Siska (4 posts)

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

Generic-user-small
08 Jun 2009, 19:12
Jaromir Siska (4 posts)

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.

Best regards Jaromir

You must be logged in to comment