Re: NSOutlineView Not Updating After Adding Items
Re: NSOutlineView Not Updating After Adding Items
- Subject: Re: NSOutlineView Not Updating After Adding Items
- From: Mark Szymczyk <email@hidden>
- Date: Thu, 6 Aug 2009 15:19:32 -0400
How are you "adding elements to the XML document"? If you're calling
add... methods on the NSXML... objects, you'd expect the sort of
results you're seeing -- AFAIK the proxy tree maintained by the
NSTreeController has no way of knowing that you changed the underlying
data model, since AFAIK KVO is not in operation for the tree
structure. Did you try constructing the NSXML... objects you want to
add, then tell the NSTreeController to add them?
I was calling the NSXML add methods. Thanks for pointing that out.
I tried creating the NSXML objects I want to add and adding them to
the tree controller using the add:, addChild:, insert:, and
insertChild: methods, and I get the same results. The methods canAdd:,
canAddChild:, canInsert:, and canInsertChild: all return NO.
Mark
_______________________________________________
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