Re: Manually adding objects to NSArrayController
Re: Manually adding objects to NSArrayController
- Subject: Re: Manually adding objects to NSArrayController
- From: Scott Anguish <email@hidden>
- Date: Thu, 18 Mar 2010 23:26:27 -0400
Modify the model, not the controller.
so the model object that holds the array should be called with
mutableArrayForKey:
passing the array variable key.
then mutate the array you get back.. that will be KVO compliant and the changes will be reflected in your controller, and then your view.
On Mar 18, 2010, at 3:10 PM, Jenny M wrote:
> Alpha >> has multiple Betas >> has multiple Deltas
> I need an NSPopUpButton to contain all of the Deltas for the one
> Alpha. Right now the NSPopUpButton is bound alright to the
> NSArrayController. The default NSArrayController setup seems to
> automatically pull *all* Delta types, NOT just the ones that exist
> under that Alpha, so I'm trying to do it manually.
_______________________________________________
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