Re: KVC and KVO for arrays
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