• 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 -> Reloading ALL data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView -> Reloading ALL data


  • Subject: Re: NSOutlineView -> Reloading ALL data
  • From: Roarke Lynch <email@hidden>
  • Date: Fri, 3 Jan 2003 11:15:51 -0500

I'm going to bet that the problem is in your datasource, not in the outlineView. How is your datasource determining the root item for the NSOutlineView?

On Friday, January 3, 2003, at 04:55 AM, Clark Mueller wrote:

Hello everyone,

I'm having some trouble forcing my table view to reload (replace, would be a more accurate term) its root item. The code I have been using is:

[outlineView reloadItem:[outlineView itemAtRow:0]]

and

[outlineView reloadData] (a la NSTableView).

None of these does anything as far as changing the root item to my new one (although it does indeed reload that item), so my best guess is that NSOutlineView is saving its items and reloading them as required, but not actually replacing them. The root item seems to be special, as well, in that it's the only one that does this. If new items are added under the root item, they are added by my call to reloadData, but again, the root item does not change. Is there a way to force the view to either reload this item, or to remove it and then add back the new one?

TIA,

Clark Mueller
email@hidden

Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSOutlineView -> Reloading ALL data
      • From: Clark Mueller <email@hidden>
References: 
 >NSOutlineView -> Reloading ALL data (From: Clark Mueller <email@hidden>)

  • Prev by Date: Find out what's wrong with an NSString?
  • Next by Date: Re: subclassing NSTabViewItem
  • Previous by thread: NSOutlineView -> Reloading ALL data
  • Next by thread: Re: NSOutlineView -> Reloading ALL data
  • Index(es):
    • Date
    • Thread