Re: NSTreeController, minus set mutation, array exception
Re: NSTreeController, minus set mutation, array exception
- Subject: Re: NSTreeController, minus set mutation, array exception
- From: mmalc Crawford <email@hidden>
- Date: Mon, 18 Jun 2007 13:27:13 -0700
On Jun 18, 2007, at 1:02 PM, Ken Victor wrote:
i've got an outline view bound via a tree controller. the tree
controller has its content set bound to a mutable set in my model.
if i attempt to delete several items via the following, everything
works as expected:
NSEnumerator* en = [itemsToDelete objectEnumerator];
while (id anItem = [en nextObject]) {
NSSet* delSet = [NSSet setWithObject: anItem];
[myController willChangeValueForKey: @"proxySet"
withSetMutation: NSKeyValueMinusSetMutation
usingObjects: delSet];
Why are you invoking the KVO change notification methods on the
controller's behalf?
And is there any reason why you are not just modifying your model
directly rather than asking the tree controller to do it?
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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