I have a tree store hooked up to a nested list. The nested list represents a shopping cart list. There are categories and line items. Sometimes line items are nested under a category and sometimes under a subcategory.
Each time the user adds an item to the shopping cart, the record in the tree store updates. Now when the user checks out I want to collect all the line items that were selected.
If there was a function that returned all the leaf records in the tree I could use that, but I didn't find that function. Do you have any idea how I can get an array containing all the leaf nodes from the tree store?