I (now) realize that I could use the arrayController to populate the array, but retaining my direct array manipulation and doing the KVO notification myself is less rewriting, and in fact entails fewer KVO calls.
-Dave

On Oct 5, 2009, at 10:21 AM, Volker in Lists wrote:


maybe it works even without these two lines - how are you populating the array controller in code ?


Am 05.10.2009 um 19:19 schrieb David Hirsch:

That's right on the money: The array was indeed bound to the contentArray in IB (otherwise it would never have been able to show any data), but I needed to surround my populating of the array with:

[phaseController willChangeValueForKey:@"arrangedObjects"]

and

[phaseController didChangeValueForKey:@"arrangedObjects"];



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to