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

mutableArrayForKeyValue Question (ignore other email)


  • Subject: mutableArrayForKeyValue Question (ignore other email)
  • From: "Alex Wait" <email@hidden>
  • Date: Sat, 28 Jun 2008 19:42:05 -0700

Gmail sent an email on me while I was typing. No idea what happened! :) So
please ignore the incomplete message.

I have successfully done some more bindings (they're so much fun ^_^ )

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"];

when I do
    [proxy addObject:newPerson]

I get

[<NSArrayController 0x130050> valueForUndefinedKey:]: this class is not key
value coding-compliant for the key Person.

In IB I have bound the Content Array to my array member in App Controller.
Shouldn't this work?
I have set the class name to be of the "Person" class. Right now the key I
am using is "Person" but I have also tried "array" and got the same problem.

What do I do next?

--
If you can't be kind, at least have the decency to be vague.
_______________________________________________

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: mutableArrayForKeyValue Question (ignore other email)
      • From: Ken Thomases <email@hidden>
    • Re: mutableArrayForKeyValue Question (ignore other email)
      • From: Scott Anguish <email@hidden>
    • Re: mutableArrayForKeyValue Question (ignore other email)
      • From: mmalc crawford <email@hidden>
  • Prev by Date: mutableArrayForKeyValue Question
  • Next by Date: Re: Building a Setup Assistant
  • Previous by thread: Re: mutableArrayForKeyValue Question
  • Next by thread: Re: mutableArrayForKeyValue Question (ignore other email)
  • Index(es):
    • Date
    • Thread