Table View(テーブルビュー)を使う(6) [AppleScript辞書はつくれるか?]
Table Viewで編集したデータを取得する場合は?
Table Viewへデータを送る場合は、
set theData to {{name:"太郎", kana:"taro"},{name:"花子", kana:"hanako"}}
set my tableView to theData
で送れるけれど、
編集をしたデータを取得したい場合はどうしたらいいか?
set theData to my tableView
としたら取得できない。(編集前のデータのままになってしまう)
なので、Table Viewのオブジェクトからという考えではなく、array controller から取得するのが良いみたい。
set theData to arrayController's arrangedObjects()
こんなかんじ。
コメント 0