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 (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 arch...@mail-archive.com