Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AussieSusan

macrumors member
Original poster
I have a (single column) table view linked to an NSArrayController that has a custom class definition as its 'Class Name'. I also have KVC compliant methods to populate the array controller within my 'model'. I can see the 'countOf...' and 'objectIn...AtIndex' methods being called and the table contains the correct data.

I have the 'Validates Immediately' option set on both the table column binding and the controller content array binding.

My problems come when I alter the contents of an entry in the table. Firstly, the only 'validate...:error:' method that is called is on the custom class for the field that is updated.

Secondly, the 'insertObject:in...:AtIndex' and similar (especially the 'replaceObjectIn...AtIndex:withObject:') methods are not called.

I have checked and rechecked that the KVC names include the correctly capitalised name of the class.

How can I get the validation (and other) routines to be called?

Thanks

Susan
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.