• 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: mutableArrayForKeyValue Question (ignore other email)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >mutableArrayForKeyValue Question (ignore other email) (From: "Alex Wait" <email@hidden>)

  • Prev by Date: Re: Garbage Collection woes...
  • Next by Date: Re: NSURLConnection vs CF and other ideas
  • Previous by thread: Re: mutableArrayForKeyValue Question (ignore other email)
  • Next by thread: Re: mutableArrayForKeyValue Question (ignore other email)
  • Index(es):
    • Date
    • Thread