Re: Bindings Concept Question
Re: Bindings Concept Question
- Subject: Re: Bindings Concept Question
- From: Scott Anguish <email@hidden>
- Date: Sun, 22 Jun 2008 01:00:13 -0400
and this is the first FAQ in the Cocoa Bindings Programming Guide
documentation
On Jun 21, 2008, at 10:12 PM, Chris Hanson wrote:
[arrayOfData addObject:newData];
That right there is your problem. You are modifying the array
itself, not the property, so it is not posting KVO notifications.
Replace that with
[[self mutableArrayValueForKey:@"arrayOfData"] addObject:newData];
and observer notifications will be sent.
_______________________________________________
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