slooksterPSV said:
See that's how mine works.
That has me think of another question - what are the actions to produce the result:
e.g. User types in box, user clicks on a different application, user changes a property in an NSSheet, user goes back to data and data is gone.
Give us the exact steps, that'll help us out.
I found a fix for it. But this is what happend:
I have two views, with a button to switch between them. This is done with addsubview and removefromsuperview.
The textview was in one of the views. When the user types in text and then clicks on the switch button (the focus is still on the textview) the typed in text is lost. When the user first clicks somewhere else, the text is saved.
I solved it by adding these lines before I switch from the view with the textview to the view without it.
[[myArrayController selection] setvalue:[[[myTextview stringvalue] copy] autorelease] forkey
"theText"];
Without the copy the text doesn't get retained, and without the autorelease it leaks.
Yes, the bindings are fine, and the 'cont. update' is also checked.
Thanks for the replies.