Add an item into a scroll view by double clicking an item

Hi Everyone!

I have a little problem with my Script in Xcode. First of all I must say, I’m an newbie in Xcode. :frowning: Here’s the Problem. I have a Scroll View with some Items. When i double click one of these items (left), it should copy the content of the item into another scroll view (right). It works fine, but just with the first item. I’m working on thise since to days :frowning: Can somebody help me? Here’s my Code:



	tell data source of table view 1 of scroll view 2 of window 1
			
			if (count data columns) is 0 then
				
				set theNew to make new data column at end of data columns
				set contents to {theSelectedCont}
				
			end if
			
			if (count data columns) is not 0 then
				
				set theNew to make new data column at end of data columns
				set contents to {theSelectedCont}
				
			end if

		end tell



Thanks for your help!!! :slight_smile:

Cheers
Marth