Re: mutableArrayForKeyValue Question (ignore other email)
Re: mutableArrayForKeyValue Question (ignore other email)
- Subject: Re: mutableArrayForKeyValue Question (ignore other email)
- From: mmalc crawford <email@hidden>
- Date: Sat, 28 Jun 2008 21:19:53 -0700
On Jun 28, 2008, at 8:51 PM, Alex Wait wrote:
i've read most of http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html
and I don't see what you mean. is there some "magic" key?
No, there is no magic key.
why isn't it Person or array?
What does the documentation say about how mutableArrayValueForKey:
works?
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/mutableArrayValueForKey:
>
If you read *all* the reference for NSArrayController, do you see a
method "Person" or a method "array"?
I tried doing
[controller addObject:newObj];
[table reloadData];
and that 'worked" at least.
It's not clear in what sense this "worked" as opposed to just worked.
The invocation of relaodData should be superfluous.
mmalc
_______________________________________________
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