Search code examples
macoscocoacocoa-bindingsnstextfield

Placeholder Text in NSTextfield bound to NSMutableString


I have some NSTextfields that I put placeholder strings in via the cocoa gui builder. Now that I used cocoa binding to link each field to its own nsmutablestring they all start out black. I tried initializing the string's to nil, but that didn't change anything.


Solution

  • For a string value, setting the null value placeholder will work when bindings are in use.