[Pyobjc-dev] a binding problem
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2004-04-07 13:03:44
|
With the arrival of the new binding examples I finally spent some time to convert an existing application to Cocoa bindings. I immediately ran into a problem that can easily be reproduced using the TableModelWithSearch example: 1) Open the NIB 2) Change the attributes for the table view: deselect 'allow empty selection' 3) Add a text field and bind that to the 'name' key of the 'selection' of the NSArrayController All seems to be well when you run the application, the name of the selected row is also shown in the text field, even when you select another row. However, when you enter a query in the search box, the text field remains empty (it contains 'no entry selected') even though the table view does contain a selected row. Do you have any idea what may be wrong (me, PyObjC, Cocoa)? Ronald -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173 |