On Sep 24, 2008, at 16:34, Sean McBride wrote:
- (void)setChildren:(NSSet *)value_ { [self willChangeValueForKey:@"children" withSetMutation:NSKeyValueSetSetMutation usingObjects:value_]; [[self primitiveChildren] setSet:value]; [self didChangeValueForKey:@"children" withSetMutation:NSKeyValueSetSetMutation usingObjects:value_]; }
This is more direct than either of my suggestions. However, my guess is that [[self primitiveChildren] setSet:value] does not maintain the inverse relationship, if you have one.
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]