Question

Just set up a NSForm and binded the first row to an NSFormCell in Interface Builder.

When I enter a text, I expected to get the result in [myFormCell placeholderString] or [myFormCell placeholderAttributedString] but there are nil.

Instead, I get it with [myFormCell stringValue].

What's the purpose of placeholderString? Am I doing right?

Was it helpful?

Solution

The placeholder string is used when the user has not entered anything yet. So you can instruct the user what to enter without needing a separate label.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top