• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Manually adding objects to NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Manually adding objects to NSArrayController
      • From: Jenny M <email@hidden>
References: 
 >Manually adding objects to NSArrayController (From: Jenny M <email@hidden>)

  • Prev by Date: Re: Detecting if you're being debugged
  • Next by Date: Weird release problem on iPhone code
  • Previous by thread: Manually adding objects to NSArrayController
  • Next by thread: Re: Manually adding objects to NSArrayController
  • Index(es):
    • Date
    • Thread