Re: mutableArrayForKeyValue Question (ignore other email)
Re: mutableArrayForKeyValue Question (ignore other email)
- Subject: Re: mutableArrayForKeyValue Question (ignore other email)
- From: Ken Thomases <email@hidden>
- Date: Sun, 29 Jun 2008 02:18:35 -0500
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 (email@hidden)
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:
This email sent to email@hidden