- 472 名前:名称未設定 mailto:sage [2008/08/05(火) 22:21:42 ID:hNnXXyWp0]
- バインディングの勉強をしています。
IBで、ArrayControllerと、Window、その上に1列のTableViewと「+」Button、「-」Buttonを配置します。 TableViewのColumumのvalueを、ArrayControllerのarrangedObjectsの適当なModel Key Path名にバインドします。 「+」ButtonをArrayControllerのadd:アクションに繋げます。 「-」ButtonをArrayControllerのremove:アクションに繋げます。 これで、編集可能なTableViewができたのですが、「+」Buttonで行を追加したとき、 追加された行は選択状態にはなりますが、編集状態にはなりません。 編集状態にするには何をすべきでしょう? Xcode2.5/Interface Builder2.5.6
|

|