Domanda

I've a NSArrayController in Interface Builder and I've disabled the option "prepare content", to fetch the content only when I need it.

But, I'm wondering, do I need to write code for it? Or is there something else I can do in interface builder?

È stato utile?

Soluzione

I believe you need to tell your array controller to "fetch," and yes, you could do it in code by creating an outlet to the Array Controller and calling [myArrayController fetch:self] OR doing it all in interface builder you could do something like connect a button to the Array Controller's fetch action.

Since you're asking specifically about interface builder, you need to option-drag from the button to the array controller object and select the fetch: action.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top