Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top