FROM : Roarke Lynch
DATE : Fri Jan 03 17:15:51 2003
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_removed>
Roarke Lynch
-------------------------------
<email_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Fri Jan 03 17:15:51 2003
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_removed>
Roarke Lynch
-------------------------------
<email_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Clark Mueller | Jan 3, 10:55 | |
| Roarke Lynch | Jan 3, 17:15 | |
| Clark Mueller | Jan 4, 08:38 | |
| Justin Lundy | Jan 4, 20:27 | |
| Clark Mueller | Jan 4, 23:27 |






Cocoa mail archive

