objective c - Doing something wrong with bindings, can't find out what -


i've mutable array holds instances of model object. model object has several properties 1 being "name". have no problems initialising or populating mutable array.

i've window drawer. added table drawer, idea being drawer use table display several instances of model object.

i added nsarraycontroller xib of window has drawer. in array controller properties i've set object controller instance of model class. on array controller bindings set controller content point file owner , set model key path name of array.

on table, bind content array controller, controller key arrangedobjects , model key path name.

my problem although mutable array has been initialised , populated can't see single entry on table on drawer. missing here?

two possibilities:

first: might have bound wrong thing (your description here bit ambiguous). bind each table column's "values" array controller's @"arrangedobjects.propertyname" (like arrangedobjects.firstname first name column, etc.). there alternative ways bind whole table, aren't binding column's values, table's content.

second: it's possible accessor model object isn't kvo compliant. make sure proper kvo notifications wrap setter accessor model array. if you've @synthesize'd it, should well. if you've hand-coded accessors, might not well. :-)


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -