Re: Mutable to-many relationship not observable
Re: Mutable to-many relationship not observable
- Subject: Re: Mutable to-many relationship not observable
- From: Mike Abdullah <email@hidden>
- Date: Fri, 14 Jan 2011 11:11:44 +0000
Show us your code that adds the observer. Also, what is the superclass of this class?
On 14 Jan 2011, at 10:45, Remco Poelstra wrote:
> Hi,
>
> I've a property digiDevices that's a to-many relationship. I've implemented the value write accesors (in addition to the read ones, which behave perfect):
> - (void) insertObject:(DigiDevice *)digiDevice inDigiDevicesAtIndex:(NSUInteger)index {
> [digiDevices insertObject:digiDevice atIndex:index];
> }
>
> - (void) removeObjectFromDigiDevicesAtIndex:(NSUInteger)index {
> [digiDevices removeObjectAtIndex:index];
> }
>
> When I modify the relationship through mutableArrayValueForKey: the object is correctly removed, but no notification is send to objects observing the array. The KVC Guide states that I get automatic KVO by implementing these methods.
> Is there something I did wrong?
>
> Kind regards,
>
> Remco Poelstra
>
> _______________________________________________
>
> 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
_______________________________________________
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