mutableArrayForKeyValue Question (ignore other email)
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