• 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: KVC and KVO for arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVC and KVO for arrays


  • Subject: Re: KVC and KVO for arrays
  • From: Hans van der Meer <email@hidden>
  • Date: Tue, 12 Feb 2008 23:07:08 +0100


On 12 feb 2008, at 22:45, Kyle Sluder wrote:

On 2/12/08, Hans van der Meer <email@hidden> wrote:
Is there something I do not see? Or do I have to add all the "indexed
accessor methods"  to NSArray and NSMutableArray in a category?
That generates another question: in that case, must I program for
manual observing by bracketing the implementation statements with
[self willChangeValueForKey ..etc] messages?

You seem to be confused... why would you be listening for changes to custom properties on the array itself?


I guess so. My intention is to have the NSArrayController following the changes in the mutable array in order to show these changes in a tableview in the GUI. As I understand it, to accomplish this the NSArrayController should observe the changes in the array. Doing simply [array addObject:] apparently does not trigger the NSArrayController into having the tableview follow the change.


Hans van der Meer




_______________________________________________

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: 
 >KVC and KVO for arrays (From: Hans van der Meer <email@hidden>)

  • Prev by Date: NSView -drawRect optimization
  • Next by Date: Re: KVC and KVO for arrays
  • Previous by thread: KVC and KVO for arrays
  • Next by thread: Re: KVC and KVO for arrays
  • Index(es):
    • Date
    • Thread