NSTextField placeholder text doesn't show unless editing

前端 未结 3 2043
清歌不尽
清歌不尽 2021-01-17 09:30

I set the placeholder text of my NSTextField in Interface Builder, but the placeholder text doesn\'t show until I click inside the text field to edit it.

3条回答
  •  独厮守ぢ
    2021-01-17 10:06

    Have you bound the NSTextField data in Interface Builder? If so, you have to set the "Multiple Values Placeholder", "No Selection Placeholder" and "Null Placeholder" in the bindings tab in your Utilities inspector. While youre at it, you could set the "No Applicable Placeholder" as well.

提交回复
热议问题