Should I use Cocoa bindings for my latest project?

前端 未结 7 738
执念已碎
执念已碎 2020-12-25 08:45

I\'m starting a project which I think would benefit from bindings (I\'ve got a source list table, several browser views, etc), but I think it would also be quite doable, and

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-25 09:25

    My general approach is to start out as much as possible using bindings and see how things go. However, if a particular interface element start to become problematic using bindings, or more effort than it's worth, then I don't hesitate to fall back to using more traditional methods (e.g. data sources, actions) when it makes sense. I've found these things can be pretty hard to predict ahead of time, but I think favoring bindings is better in the long run, as long as you don't get too dogmatic about sticking with them in situations when they don't provide any benefit.

提交回复
热议问题