• 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: 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


  • Follow-Ups:
    • Re: mutableArrayForKeyValue Question (ignore other email)
      • From: "Alex Wait" <email@hidden>
References: 
 >mutableArrayForKeyValue Question (ignore other email) (From: "Alex Wait" <email@hidden>)
 >Re: mutableArrayForKeyValue Question (ignore other email) (From: mmalc crawford <email@hidden>)
 >Re: mutableArrayForKeyValue Question (ignore other email) (From: "Alex Wait" <email@hidden>)

  • Prev by Date: RE: Methods that return autoreleased objects?
  • Next by Date: Re: mutableArrayForKeyValue Question (ignore other email)
  • Previous by thread: Re: mutableArrayForKeyValue Question (ignore other email)
  • Next by thread: Re: mutableArrayForKeyValue Question (ignore other email)
  • Index(es):
    • Date
    • Thread