When should I remove observers? Error about deallocating objects before removing observers

Ah. You’re observing a TekkPoint object from a SomethingElse object, and the SomethingElse object is the one adding and removing the observers, correct? (That’s the normal way things are done; I’m just trying to clarify.) It looks like your TekkPoint object is being deallocated while the SomethingElse that’s observing it is still around. The SomethingElse … Read more

Is there any technical/conceptual reason why iOS does not support Cocoa Bindings? [closed]

Bindings on the desktop requires: All suitable UI components to expose bindings for their important properties Implementation of NSArrayController infrastructure for handling selection On iOS, point 2 becomes less of an issue. It is rare (and perhaps even a bad UI design) to have a master-detail view layout where multiple selection is possible. This is … Read more

Can you manually implement Cocoa bindings?

Here is the best solution I can find. I’ve got a more detailed discussion and demo code here: http://tomdalling.com/blog/cocoa/implementing-your-own-cocoa-bindings/ Basically, you DO NOT override bind:toObject:withKeyPath:options: or unbind:. The default implementation on NSObject will use NSAutounbinder to avoid retain cycles. As Louis Gerbarg pointed out, there are still situations where NSAutounbinder doesn’t kick in. However, you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)