Search code examples
objective-cperformancecocoansarraycontroller

Is it bad practice to use NSArrayControllers programmatically?


I'm wondering if there is any reason to not use NSArrayController programmatically. All documentation and tutorials are geared towards having NSArrayControllers implemented in IB.

Is there any negative to doing so?


Solution

  • No, not at all. It may perhaps beat the purpose of using them, i.e. some kind of automation of the process of managing values, but of course you can create and use them in code instead of from a nib or xib.