Xavier Glattard wrote: > Fred Kiefer <fredkiefer <at> gmx.de> writes: > >> Xavier Glattard wrote: > (...) >>> 1) Examples/bindings.gsmarkup, two textFields, one value. >>> I had to create two bindings between the two fields. I thought a bindings >>> was two-way.... >> Could you please explain a bit more what you are expecting and what you >> get? The binding code in gui is still unfinished, but basic two way >> interaction should work, at least in the cases where the bindings are >> already defined. >> You do understand that the binding behaviour is not symmetrical? At >> least not in my implementation and I think that is how Apple handles it >> as well. >> Did you test your code on MacOSX, was there any difference in behaviour? > > I can't : no mac :-( > > In bindings.gsmarkup i define 2 textFields. First i bind the 1st field to the > 2nd one : > [first bind:"value" toObject:second ...] > If i change the value of the 1st field, the 2nd one is updated. But I expected > that the value of the 1st would be updated when the value of the 2nd one > changes. To get that behavior i have to bind the 2nd field to the first. > [second bind:"value" toObject:first ...] >
I think that is the expected behaviour. At least it was what I implemented :-) >>> 2) Examples/stepper-bindings.gsmarkup >>> NSStepper seems not to support binding properly : i get an error message >>> about Glyph... And i had to define a target/action >>> >> This description is not that helpful Could you please describe some >> more what should happen? I don't have the latest renaissance test code. > > In stepper-binding.gsmarkup i tried the same than in the previous example, but > the 2nd field is a NSStepper. If I bind the stepper to the textField, i get > the > following error message when I click on the stepper : > > /.../gnustep/libs/renaissance/Tools/GSMarkupBrowser.app/GSMarkupBrowser: > Uncaught exception NSGenericException, reason: Glyph generation was triggered > for a layout manager while the text storage it was attached to had unprocessed > editing. This is not allowed. Glyph generation may be triggered only at points > where calls to -beginEditing and -endEditing are balanced. > > It doesn't look like a binding issue... Maybe Renaissance autolayout system ? > I don't think so. More a problem in the text system. Could you please send me a back trace from gdb? I would like to understand what is triggering the text change here. >> Perhaps I should get that first and have a look. It may well be that you >> are trying to use an unsupported binding here. > > I only tried the "value" binding. > >> New bindings are rather easy to add in gui, I am just a bit lazy. > > If that's easy I might try to do the job :-) > I actually only need to know what is good and what is bad. > You are welcome to do so :-) _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev