On Jun 28, 2008, at 9:42 PM, Alex Wait wrote:

I am trying to modify the array controller programmatically and I'm running
into problems using mutableArrayForKeyValue

I am using this line

   id proxy = [controller mutableArrayValueForKey:@"Person"];

-mutableArrayValueForKey: is for modifying the model, not the controller (neither mediating nor coordinating).

I presume the code you're writing is part of the implementation of a coordinating controller, in which case you should have direct access to the model, so you shouldn't need to go back "out" to a mediating controller.

On the other hand, if you're writing a bindable view, then you can use -[NSArrayController addObjects:] or some other method on the mediating controller.

Cheers,
Ken
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to