Tuesday, July 17, 2018

#1 2010-11-19 04:17:16 am

Marth
Member
Registered: 2009-06-19
Posts: 54

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. :-( 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 :-( Can somebody help me? Here's my Code:

Applescript:



   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


dt-1129016177311.png


Thanks for your help!!!! :-)

Cheers
Marth

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)