help with button cell

I have a table which is being populated using

set content of thetable to nameLog

–namelog is a list of filenames

In the 2nd column I have button cells (1 per row)

Im trying to get it so, when a buttoncell is click that row is removed from the table. Can somebody help me out with this or tell me if I need to post more detail about my applescript

OS Tiger
Xcode 2.0

Thanks
pete

Hi pete,

here an example how it could be done:

global theTable

on awake from nib theObject
	set theTable to table view "tv" of scroll view "sv" of window "main"
	set content of theTable to {{"file0", 0}, {"file1", 0}, {"file2", 0}, {"file3", 0}, {"file4", 0}, {"file5", 0}}
end awake from nib


on cell value changed theObject row theRow table column tableColumn value theValue
	if name of tableColumn is "buttons" then
		delete data row theRow of the data source of theTable
	end if
end cell value changed


the button cell column’s applescript name is ‘buttons’ of course …

D.