KVC and arrays
KVC and arrays
- Subject: KVC and arrays
- From: "Daniel Angermeier" <email@hidden>
- Date: Fri, 22 Jun 2007 16:46:59 +0200
Hi,
I have an array controller that is bound to a property of someObject
that returns an array.
-(NSMutableArray *)items
{
return myItems;
}
That array controller is bound to the table columns of a table view.
when I modify myItems, e.g. [myItmes removeLastObject];
the arrayController / the table view are not updated,
unless I call [self setItems:myItems]; after any modification to myItems.
Is this the correct way to do this, or is there something else I am
missing that would cause the bound objects to be updated if I modifiy
my mutable array ?
Any help appreciated!
Thanks!
Daniel
_______________________________________________
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