0

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?

Tom
  • 613
  • 6
  • 14

1 Answers1

1

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.

Mike Lischke
  • 48,925
  • 16
  • 119
  • 181