• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView Not Updating After Adding Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSOutlineView Not Updating After Adding Items
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: "Could not support development." (after updating iPhone to 3.0.1)
  • Next by Date: Re: Change Opacity of Image
  • Previous by thread: Re: NSOutlineView Not Updating After Adding Items
  • Next by thread: Re: NSOutlineView Not Updating After Adding Items
  • Index(es):
    • Date
    • Thread