je suis en train de confectionner un petit programme en ASS , et je suis confronté a un problème;
j'ai un petit tableau (NSTableView) et j'aimerais pouvoir modifier les noms contenus dans ce tableau en cliquant dessus QUAND un bouton switcher (case a cocher) est coché, si il n'est pas coché cela ne ferait que selectionner le nom.
pour cela, voici mon code qui se trouve dans un script séparé du principal


on clicked theObject
if the name of theObject is "case1" then -- case1=la case a cocher
set etat to state of theObject
else if the name of theObject is "nomTableView" then
if (etat = 0) then
set rowIndex to clicked row of theObject
if rowIndex is greater than 0 then
set currentDataSource to data source of theObject
set theRow to data row rowIndex of currentDataSource
set aAfficher to contents of data cell "prenom" of theRow
display dialog aAfficher
end if
end if
end if
end clicked
ici, j'ai mis que si le bouton etait décoché et que l'on clickait sur un element de la liste, une fenetre s'ouvrait et m'affichait le nom de l'élément...
Quelqu'un sait-il maider a resoudre mon petit robleme ???
mercismileylm15:
