Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Again with the Bindings

Again with the Bindings
Thread Tools
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Mar 30, 2005, 01:06 AM
 
I hope that I will be able to accurately frame this question.

I have a table whose columns are bound to an arrayController. the data in the table can be edited by calling up an inspector panel which is also bound to the arrayController. so changing a value in the inspector changes the value in the table. Multiple items may be selected in the table and when the inspector is brought up all of the selected items may be edited "en masse". I recently changed all of the textFields in my inspector to auto-completing comboBoxes. That where my problem comes in.

when the user brings up the inspector to edit multiple items, If the user clicks inside a comboBox the text turns from "Multiple Values" into an empty field ready for input. So far so good. Say the user decides not to edit this field after all and tabs to another different field. Bam. All values from all selected objects bound to that comboBox are now clobbered. as in they all have no value. No editing took place, the user just clicked into the field. This only happens with comboBoxes. Under the same situation but with a textField, everything works as expected. If a user clicks into a textField, the text "Multiple Values" goes away and the field is ready to be edited. If the user leves the field without editing, the "Multiple Values" placeholder comes back and all selected objects in the table do not have their values clobbered.

Did that make sense to you all?
3R1C
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2