Binding in Interfacebuilder clears the prompt text
As soon as I set up a binding for an NSTextField
in Interfacebuilder, it clears the placeholder string (The gray text, which disappears as soon as you enter text).
I currently don't understand, why binding the value should change the placeholder string too.
A开发者_如何转开发ny ideas?
I just figured it out myself:
As soon as I bind the value to some object I have to use the binding options to re-enable the placeholder string.
In the bindings tab I can now set the value Null placeholder
which then has the same effect.
I find this a bit confusing but it seems to work.
精彩评论