How to get every item of an outline view

I’ve been stumped by (what I thought was an easy one) getting all the items in an outline view. I have attached and populated a data source to the outline view. I have tried various forms of the following:

set theJobs to the contents of every data cell of every data item of JobsDS

The best that I’ve been able to retrieve are the parent items, but not the children.

There will always be from 1 to 6 parent items (i.e. top level). Each parent item will have exactly 8 siblings, all second level items. The data source contains 2 columns: “theItems” and “theDescriptions.” The columns have been named in IB and I am able to populate the outline properly. I just can’t figure out how to get the data out. :frowning:

I have searched this BBS and didn’t find an answer. I have read through the Terminology Reference. I would search the ASStudio Mail List but it is no longer searchable.

Thanks in Advance,
Brad Bumgarner, CTA

OK, to answer my own question – after much pondering (and searching of documentation) I stumbled upon the solution. I originally was using:

set theJobs to the contents of every data cell of every data item of JobsDS

That only returned the parent’s information. To get the information for the children (1 level deep) I used this code:

set theJobs to the contents of every data cell of every data item OF EVERY DATA ITEM of JobsDS

Fortunately for me I only need to go one level deep. I’m not sure how to determine how many levels deep the children go. But that will have to wait until another time.

Brad Bumgarner, CTA