> I am new to AppleScript so hopefully when i explain this so it makes
> sense.
[quoted text clipped - 9 lines]
>
> This works fine as the table view gets populated.
Okay, but you no longer have to do that. Did you look at the code in my
previous reply? You can just set content of the table view directly.
There is no need to talk explicitly about a data source any more. But
you can if you want to.
So, from my previous example, I change the awake from nib code to this:
on awake from nib theObject
set t to (get table view 1 of scroll view 1 of window 1)
set d to (make new data source at end of data sources)
tell d
make new data column at end of data columns with
properties {name:"colone"}
make new data column at end of data columns with
properties {name:"coltwo"}
append it with {{colone:false, coltwo:"ha"}}
end tell
set data source of t to d
end awake from nib
And again, I check the data source's contents like this:
on clicked theObject
log (get contents of every data cell of every data row of data
source of table view 1 of scroll view 1 of window 1)
end clicked
It responds correctly when the user edits the data in the table.
> Now if the program is run, and the user makes a change in the table
> view grid, the change is not in the datasource.
[quoted text clipped - 4 lines]
> Is there a command something like...
> set datasource to values in table view 1 of scroll view 1 of window 1
No, because there is no need. The whole point of the data source is that
it is where the values are already.
> hope this helps to clarify the problem
No, it doesn't. You don't show any code. I do. My code works. Either
make yours look like mine or show yours so that it can be corrected. m.

Signature
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/
Tiger - http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com
Spidey - 25 Apr 2006 14:13 GMT
Ok, thanks amazingly you seem to have pointed me in the right
direction.
I was using 0/1 in my datasource, but the check box was changing it to
true/false. Becuase if my inexperience with Applescript i was looking
for a command that would update the datasource from the grid. I
realize now that it was not needed.
Thanks.